ChatBedrock()The bedrock runtime client for making data plane API calls
The bedrock client for making control plane API calls
The aws region e.g., us-west-2. Falls back to AWS_REGION or
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.
Request timeout in seconds. Sets both connect_timeout and read_timeout
Maximum number of retry attempts. Sets retries.max_attempts on the
The model provider, e.g., 'amazon', 'cohere', 'ai21', etc. When not
Id of the model to call, e.g., 'amazon.titan-text-express-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.
Maximum number of tokens to generate.
Service tier for model invocation.
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.