Skip to content

BedrockModelOptions

Namespace: E2E

public sealed class BedrockModelOptions

Inheritance: object

View source

public string? ApiKey { get; init; }

A Bedrock API key, sent as a bearer token instead of signing.

Value: string

View source

public string ApiKeyEnv { get; init; }

Environment variable read when ApiKey is empty. Defaults to AWS_BEARER_TOKEN_BEDROCK.

Value: string

View source

public string? BaseUrl { get; init; }

The runtime endpoint. Unset, it is https://bedrock-runtime.{region}.amazonaws.com.

Value: string

View source

public AwsCredentials? Credentials { get; init; }

Signing credentials. Unset, they come from AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, and AWS_SESSION_TOKEN and, with those unset too, from the AWS credential chain (AWS_PROFILE or the default profile, SSO, container and instance roles).

Value: AwsCredentials

View source

public int MaxTokens { get; init; }

Value: int

View source

public required string Model { get; init; }

A Bedrock model id or inference profile, such as us.anthropic.claude-sonnet-4-5-20250929-v1:0.

Value: string

View source

public string Provider { get; init; }

The key this client reads in ProviderOptions. Its fields are added to the body as given.

Value: string

View source

public string? Region { get; init; }

The AWS region. Unset, it is AWS_REGION, then AWS_DEFAULT_REGION, then us-east-1.

Value: string

View source

public string? ResolveApiKey()

Returns: string

View source

public AwsCredentials? ResolveCredentials()

Returns: AwsCredentials

View source

public string ResolveRegion()

Returns: string

View source