Skip to content

AnthropicAwsProvider

Namespace: Vercel.AI.Anthropic

public sealed class AnthropicAwsProvider : AnthropicProvider, IBatchProvider, IDecisionProvider, IEvaluationProvider

Anthropic on AWS. Same Messages body, with regional hosts, workspace ids, and SigV4.

Inheritance: object → ProviderBase → AnthropicProvider

Implements: IBatchProvider, IDecisionProvider, IEvaluationProvider

View source

AnthropicAwsProvider(HttpClient, AnthropicOptions?)

Section titled “AnthropicAwsProvider(HttpClient, AnthropicOptions?)”
public AnthropicAwsProvider(HttpClient httpClient, AnthropicOptions? options = null)

Creates an Anthropic on AWS provider.

Parameters

Name Type Description
httpClient HttpClient
options AnthropicOptions

View source

Create(AnthropicOptions?, HttpMessageHandler?)

Section titled “Create(AnthropicOptions?, HttpMessageHandler?)”
public static AnthropicAwsProvider Create(AnthropicOptions? options = null, HttpMessageHandler? handler = null)

Creates a provider.

Parameters

Name Type Description
options AnthropicOptions
handler HttpMessageHandler

Returns: AnthropicAwsProvider

View source

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