System prompt parameter for ChatBedrockConverse #730
Closed
Steinkreis
started this conversation in
Ideas
Replies: 1 comment
-
|
Moved to issue: #728 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think it would be beneficial to add a system_prompt parameter to the
ChatBedrockConverseclass, similar to how a system prompt can be defined for agents.In the boto3 implementation, the client call works like this:
client.converse(messages=bedrock_messages, system=system, **params)Here, the system message is handled separately from the rest of the messages. Allowing a
system_promptparameter would make the developer experience more consistent with using Bedrock directly.This parameter could be implemented as an optional str, defaulting to None. That way,
ChatBedrockConversecould be used in two ways:I’ve looked into the source code, and with a small change to the _messages_to_bedrock function, this should be straightforward to implement. I’d also be happy to contribute this change.
Beta Was this translation helpful? Give feedback.
All reactions