Skip to content

AmazonBedrockOptions

Namespace: Vercel.AI.AmazonBedrock

public sealed class AmazonBedrockOptions

Amazon Bedrock settings.

Inheritance: object

View source

public string? AccessKeyId { get; set; }

Access key. Falls back to AWS_ACCESS_KEY_ID.

Value: string

View source

public string? AgentRuntimeBaseUrl { get; set; }

Agent Runtime origin for rerank. Falls back to AWS_ENDPOINT_URL_BEDROCK_AGENT_RUNTIME, then AWS_ENDPOINT_URL. When none is set, the host is https://bedrock-agent-runtime.{region}.{suffix}.

Value: string

View source

public string? BaseUrl { get; set; }

Bedrock Runtime origin. Falls back to AWS_ENDPOINT_URL_BEDROCK_RUNTIME, then AWS_ENDPOINT_URL. When none is set, the host is https://bedrock-runtime.{region}.{suffix}.

Value: string

View source

public Dictionary<string, string?> Headers { get; set; }

Headers sent with every request. Call headers override them.

Value: Dictionary<string, string>

View source

public Func<CancellationToken, Task<IReadOnlyDictionary<string, string?>>>? HeadersProvider { get; set; }

Resolves extra headers on every call, like upstream’s resolvable headers. Its values win over Headers, and a null value drops a header. Call headers still win over both.

Value: Func<CancellationToken, Task<IReadOnlyDictionary<string, string>>>

View source

public string Region { get; set; }

AWS region. Falls back to AWS_REGION, then us-east-1.

Value: string

View source

public string? SecretAccessKey { get; set; }

Secret key. Falls back to AWS_SECRET_ACCESS_KEY.

Value: string

View source

public string? SessionToken { get; set; }

Session token. Falls back to AWS_SESSION_TOKEN.

Value: string

View source

public Func<DateTimeOffset>? UtcNow { get; set; }

Clock used for signing. Tests can pin this.

Value: Func<DateTimeOffset>

View source

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