OptionalcredentialsOptionalendpointOverride the default endpoint hostname.
OptionalendpointOptionalfetchA custom fetch function for low-level access to AWS API. Defaults to fetch().
Optionalinit: RequestInitOptionalinit: RequestInitOptionalguardrailRequired when Guardrail is in use.
OptionalguardrailIdentifier for the guardrail configuration.
OptionalguardrailVersion for the guardrail configuration.
OptionalmaxMax tokens.
OptionalmodelModel to use. For example, "amazon.titan-tg1-large", this is equivalent to the modelId property in the list-foundation-models api.
OptionalmodelAdditional kwargs to pass to the model.
OptionalregionThe AWS region e.g. us-west-2.
Fallback to AWS_DEFAULT_REGION env variable or region specified in ~/.aws/config in case it is not provided here.
OptionalstopOptional additional stop sequences to pass to the model. Currently only supported for Anthropic and AI21.
OptionalstreamingWhether or not to stream responses
OptionaltemperatureTemperature.
OptionaltraceTrace settings for the Bedrock Guardrails.
AWS Credentials. If no credentials are provided, the default credentials from
@aws-sdk/credential-provider-nodewill be used.