Skip to content

Vercel.AI.Anthropic

API reference

Anthropic Messages provider.

Type Summary
AnthropicAwsApiKeyFetch API-key fetch wrapper. The transport is read when the call is sent, not when the wrapper is created.
AnthropicAwsCredentials AWS credentials used to sign Claude Platform requests.
AnthropicAwsFetch Claude Platform on AWS fetch behavior. GET and POST requests without a body skip signing. POST bodies are signed for service aws-external-anthropic.
AnthropicAwsPreparedCall A request after the Claude Platform fetch wrapper has applied user-agent and SigV4.
AnthropicAwsProvider Anthropic on AWS. Same Messages body, with regional hosts, workspace ids, and SigV4.
AnthropicBashResult Output of a bash sandbox command.
AnthropicBashTool Runs a bash provider tool through a caller-supplied sandbox.
AnthropicBatch Validation and status mapping for the Anthropic Message Batches API.
AnthropicBatchApi Anthropic Message Batches API. Downloads the JSONL results of a finished batch.
AnthropicBatchCounts Request counts derived from an Anthropic message batch.
AnthropicCacheControlValidator Reads cachecontrol and enforces Anthropic’s four-breakpoint limit.
AnthropicContainer Copies the latest Anthropic container id into the next call’s provider options.
AnthropicCustomContent A provider block the V4 content list has no dedicated type for.
AnthropicErrorData Parsed Anthropic error body. Extra fields such as details are dropped.
AnthropicEvaluationAnswer One parsed answer.
AnthropicEvaluationModel Builds and scores Anthropic evaluation requests on the Messages API.
AnthropicEvaluationQuestion One evaluation question.
AnthropicEvaluationResult Evaluation call result.
AnthropicFiles Anthropic Files API upload.
AnthropicJsonSchema Relaxes a JSON Schema so it can be sent as Anthropic outputconfig.format.schema. The caller’s original schema is not modified.
AnthropicLanguageModel Anthropic Messages language model.
AnthropicMessagesRequest Builds an Anthropic Messages request from SDK call options.
AnthropicModelCapabilities What a Claude model id accepts on the Messages API.
AnthropicModelSettings Optional settings that let a Messages-compatible provider adjust the shared Anthropic adapter.
AnthropicOptions Anthropic Messages API settings.
AnthropicParseContext Settings for mapping an Anthropic Messages response onto SDK content.
AnthropicPreparedRequest A Messages request body plus the betas and warnings that go with it.
AnthropicPreparedTools Tools and tool choice ready for a Messages request.
AnthropicPrompt Converts SDK prompt messages into Anthropic message blocks.
AnthropicPromptResult Anthropic system and messages produced from an SDK prompt.
AnthropicProvider Anthropic Messages provider.
AnthropicReasoning Maps SDK reasoning levels onto Anthropic thinking and effort.
AnthropicReasoningConfig Thinking and effort derived from a top-level reasoning level.
AnthropicReasoningContent Reasoning content with a thinking signature or redacted payload.
AnthropicResponse Maps an Anthropic Messages JSON body onto a generate result.
AnthropicServiceCollectionExtensions Registers Anthropic.
AnthropicSkillFile A skill file sent as multipart files[].
AnthropicSkills Anthropic Skills API.
AnthropicSkillUpload Result of uploading a skill.
AnthropicStopReason Maps an Anthropic stopreason onto the SDK finish reason.
AnthropicStream Turns Anthropic SSE JSON events into SDK stream parts.
AnthropicStreamError HTTP status implied by an Anthropic stream error type.
AnthropicText Generated text that also carries Anthropic provider metadata, such as citations.
AnthropicToolDefinition A function or provider tool passed to AnthropicToolPreparer.
AnthropicToolPreparer Builds the Anthropic tools and toolchoice fields.
AnthropicToolResultContent A provider-executed tool result returned inside a Messages response.
AnthropicUploadedFile Files API upload result.
AnthropicUsage Converts an Anthropic usage object into SDK token counts.
AnthropicWarning A warning produced while preparing an Anthropic request.
Type Summary
AnthropicMediaPartConverter Converts one file part for a provider that speaks the Messages protocol. Receives the part in the SDK message JSON shape. Returns the image or video block without cachecontrol, or null to use the default conversion.

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