Skip to content

Vercel.AI.AmazonBedrock

API reference

Amazon Bedrock provider.

Type Summary
AmazonBedrockAnthropicFetch Wraps a handler so the Anthropic Messages model can read Bedrock responses. Failed responses become Anthropic error bodies, and application/vnd.amazon.eventstream bodies become server-sent events. Maps to createAmazonBedrockAnthropicFetch.
AmazonBedrockAnthropicLanguageModel Anthropic language model invoked through Bedrock. Delegates to AnthropicLanguageModel.
AmazonBedrockAnthropicOptions Settings for Anthropic Messages on Amazon Bedrock InvokeModel.
AmazonBedrockAnthropicProvider Anthropic Messages provider hosted on Amazon Bedrock.
AmazonBedrockAnthropicRequests Builds InvokeModel URLs and the Bedrock Anthropic request body.
AmazonBedrockApiKeyFetch API-key fetch wrapper. The transport is read when the call is sent, not when the wrapper is created.
AmazonBedrockCredentials AWS credentials used to sign Amazon Bedrock requests.
AmazonBedrockEmbeddingModel Amazon Bedrock InvokeModel embedding model for Titan, Cohere, and Nova.
AmazonBedrockEmbeddingModelSettings Settings for AmazonBedrockEmbeddingModel.
AmazonBedrockEndpoints Builds Bedrock service hosts. Partition prefixes select the DNS suffix.
AmazonBedrockErrors Maps a Bedrock JSON error body onto the SDK exception hierarchy.
AmazonBedrockFetch Amazon Bedrock fetch behavior. GET requests and POST requests without a body skip signing. POST bodies are signed with SigV4. Caller headers are signed, except values with non-ASCII characters.
AmazonBedrockLanguageModel Bedrock Converse language model.
AmazonBedrockMessages Converts V4 prompt messages into Converse system and messages arrays.
AmazonBedrockOptions Amazon Bedrock settings.
AmazonBedrockPreparedCall A request after the Bedrock fetch wrapper has applied user-agent and authentication.
AmazonBedrockProvider Amazon Bedrock Converse provider.
AmazonBedrockRerankingModel Amazon Bedrock Agent Runtime rerank model.
AmazonBedrockServiceCollectionExtensions Registers Bedrock.
AmazonBedrockSigV4Fetch SigV4 fetch wrapper. The credentials are read when each call is sent.
AmazonBedrockToolIds Mistral tool-call ids on Bedrock must be exactly nine alphanumeric characters.
AmazonBedrockTools Builds a Converse toolConfig from V4 function tools.
AmazonBedrockUsage Converts a Converse usage object. Bedrock inputTokens excludes cache tokens; the V4 input total adds cache read and cache write.
AwsSigV4 Signs an HTTP request with AWS Signature Version 4.
BedrockMantleLanguageModel Mantle language model. Delegates to the OpenAI Chat Completions or Responses model, with the request signed for bedrock-mantle.
BedrockMantleOptions Settings for the OpenAI-compatible Bedrock Mantle endpoint.
BedrockMantleProvider Bedrock Mantle provider. Chat calls use /chat/completions and are signed for bedrock-mantle.
BedrockMantleRoutes Mantle URL rules. Some model ids are served under /openai/v1.
Type Summary
AmazonBedrockEmbeddingModelFamily Amazon Bedrock embedding model family. It selects the request format and the batch size.

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product