AmazonBedrockAnthropicProvider
Namespace: Vercel.AI.AmazonBedrock
public sealed class AmazonBedrockAnthropicProvider : ProviderBaseAnthropic Messages provider hosted on Amazon Bedrock.
Inheritance: object → ProviderBase
Constructors
Section titled “Constructors”AmazonBedrockAnthropicProvider(HttpClient, AmazonBedrockAnthropicOptions?)
Section titled “AmazonBedrockAnthropicProvider(HttpClient, AmazonBedrockAnthropicOptions?)”public AmazonBedrockAnthropicProvider(HttpClient httpClient, AmazonBedrockAnthropicOptions? options = null)Creates a provider.
Parameters
| Name | Type | Description |
|---|---|---|
httpClient |
HttpClient | |
options |
AmazonBedrockAnthropicOptions |
Fields
Section titled “Fields”ProviderId
Section titled “ProviderId”public const string ProviderId = "bedrock.anthropic.messages"Provider id.
Value: string
Properties
Section titled “Properties”HttpClient
Section titled “HttpClient”public HttpClient HttpClient { get; }HTTP client that receives the signed request.
Value: HttpClient
Options
Section titled “Options”public AmazonBedrockAnthropicOptions Options { get; }Options.
Value: AmazonBedrockAnthropicOptions
public static IReadOnlyList<string> Tools { get; }The Anthropic provider tool ids. The same list as Tools.
Value: IReadOnlyList<string>
Methods
Section titled “Methods”Create(AmazonBedrockAnthropicOptions?, HttpMessageHandler?)
Section titled “Create(AmazonBedrockAnthropicOptions?, HttpMessageHandler?)”public static AmazonBedrockAnthropicProvider Create(AmazonBedrockAnthropicOptions? options = null, HttpMessageHandler? handler = null)Creates a provider. Pass a handler from tests.
Parameters
| Name | Type | Description |
|---|---|---|
options |
AmazonBedrockAnthropicOptions | |
handler |
HttpMessageHandler |
Returns: AmazonBedrockAnthropicProvider
EmbeddingModel(string)
Section titled “EmbeddingModel(string)”public override IEmbeddingModel EmbeddingModel(string modelId)Bedrock Anthropic has no embedding models.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: IEmbeddingModel
ImageModel(string)
Section titled “ImageModel(string)”public override IImageModel ImageModel(string modelId)Bedrock Anthropic has no image models.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: IImageModel
LanguageModel(string)
Section titled “LanguageModel(string)”public override ILanguageModel LanguageModel(string modelId)Returns a language model.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: ILanguageModel
New(string)
Section titled “New(string)”public ILanguageModel New(string modelId)Throws because the JavaScript provider function rejects new.
Parameters
| Name | Type | Description |
|---|---|---|
modelId |
string |
Returns: ILanguageModel
ResolveBaseUrl()
Section titled “ResolveBaseUrl()”public string ResolveBaseUrl()Bedrock Runtime origin for these options.
Returns: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product