bedrock
autogen.oai.bedrock.BedrockClient
BedrockClient
Client for Amazon’s Bedrock Converse API.
Initialises BedrockClient for Amazon’s Bedrock Converse API
Name | Description |
---|---|
**kwargs | Type: Any |
Instance Methods
cost
Calculate the cost of the response.
Parameters:Name | Description |
---|---|
response | Type: ChatCompletion |
create
Run Amazon Bedrock inference and return AG2 response
Parameters:Name | Description |
---|---|
params |
get_usage
Get the usage of tokens and their cost information.
Parameters:Name | Description |
---|---|
response |
message_retrieval
Retrieve the messages from the response.
Parameters:Name | Description |
---|---|
response |
parse_custom_params
Parses custom parameters for logic in this client class
Parameters:Name | Description |
---|---|
params | Type: dict[str, Any] |
parse_params
Loads the valid parameters required to invoke Bedrock Converse Returns a tuple of (base_params, additional_params)
Parameters:Name | Description |
---|---|
params | Type: dict[str, Any] |