ChatBedrock()Amazon Q client.
The bedrock client for making control plane API calls
AWS region name. If not provided, will be extracted from environment.
The name of the profile in the ~/.aws/credentials or ~/.aws/config files,
AWS access key id.
AWS secret_access_key.
AWS session token.
Bedrock API key.
An optional botocore.config.Config instance to pass to the client.
Name of the provider, e.g., amazon, cohere, etc..
Id of the model to call, e.g., 'amazon.titan-embed-text-v1', this is
An optional field to pass the base model id. If provided, this will be used over
Keyword arguments to pass to the model.
Needed if you don't want to default to 'us-east-1' endpoint
Whether to stream the results.
An optional dictionary to configure guardrails for Bedrock.
Sampling temperature. Must be 0 to 1.
Max tokens to generate.
Stop sequence inference parameter from new Bedrock converse API providing
a sequence of characters that causes a model to stop generating a response. See
https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_InferenceConfiguration.html
for more.
A chat model that uses the Bedrock API.