interface BedrockChatFieldsPartial<BaseBedrockInput>BaseChatModelParamsOptional URL Encoded overide for URL model parameter in fetch. Necessary for invoking an Application Inference Profile.
For example, "arn%3Aaws%3Abedrock%3Aus-east-1%3A1234567890%3Aapplication-inference-profile%2Fabcdefghi", will override this.model in final /invoke URL call.
Must still provide model as normal modelId to benefit from all the metadata.
AWS Credentials.
If no credentials are provided, the default credentials from @aws-sdk/credential-provider-node will be used.
Whether to disable streaming.
If streaming is bypassed, then stream() will defer to
invoke().
Override the default endpoint hostname.
Required when Guardrail is in use.
Identifier for the guardrail configuration.
Version for the guardrail configuration.
The maximum number of concurrent calls that can be made.
Defaults to Infinity, which means no limit.
The maximum number of retries that can be made for a single call, with an exponential backoff between each attempt. Defaults to 6.
Max tokens.
Model to use. For example, "amazon.titan-tg1-large", this is equivalent to the modelId property in the list-foundation-models api.
Custom handler to handle failed attempts. Takes the originally thrown error object as input, and should itself throw an error if the input error is not retryable.
Version of AIMessage output format to store in message content.
AIMessage.contentBlocks will lazily parse the contents of content into a
standard format. This flag can be used to additionally store the standard format
as the message content, e.g., for serialization purposes.
.contentBlocks).contentBlocks)You can also set LC_OUTPUT_VERSION as an environment variable to "v1" to
enable this by default.
The 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.
Whether or not to stream responses
Temperature.
Trace settings for the Bedrock Guardrails.