Skip to content

BedrockMantleOptions

Namespace: Vercel.AI.AmazonBedrock

public sealed class BedrockMantleOptions

Settings for the OpenAI-compatible Bedrock Mantle endpoint.

Inheritance: object

View source

public string? AccessKeyId { get; set; }

Access key. Falls back to AWS_ACCESS_KEY_ID.

Value: string

View source

public string? ApiKey { get; set; }

Bearer token. When set, SigV4 is not used. Falls back to AWS_BEARER_TOKEN_BEDROCK.

Value: string

View source

public string? BaseUrl { get; set; }

Origin including the version path. When empty, the regional Mantle host is used.

Value: string

View source

public Func<CancellationToken, Task<AmazonBedrockCredentials>>? CredentialProvider { get; set; }

Supplies SigV4 credentials for each request. When set, its keys are used instead of AccessKeyId, SecretAccessKey, and SessionToken. The region always comes from Region.

Value: Func<CancellationToken, Task<AmazonBedrockCredentials>>

View source

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

Extra headers sent on every call. The SDK user-agent suffix is appended.

Value: Dictionary<string, string>

View source

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

Resolves extra headers on every call, after Headers. Its values win. A null value drops the header.

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.

Value: Func<DateTimeOffset>

View source

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