Strands Agents Typescript SDK
    Preparing search index...

    Interface BedrockModelConfig

    Configuration interface for AWS Bedrock model provider.

    Extends BaseModelConfig with Bedrock-specific configuration options for model parameters, caching, and additional request/response fields.

    const config: BedrockModelConfig = {
    modelId: 'global.anthropic.claude-sonnet-4-5-20250929-v1:0',
    maxTokens: 1024,
    temperature: 0.7,
    cachePrompt: 'ephemeral'
    }
    interface BedrockModelConfig {
        maxTokens?: number;
        temperature?: number;
        topP?: number;
        stopSequences?: string[];
        cachePrompt?: string;
        cacheTools?: string;
        additionalRequestFields?: JSONValue;
        additionalResponseFieldPaths?: string[];
        additionalArgs?: JSONValue;
        stream?: boolean;
        includeToolResultStatus?: boolean | "auto";
        modelId?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    maxTokens?: number

    Maximum number of tokens to generate in the response.

    temperature?: number

    Controls randomness in generation.

    topP?: number

    Controls diversity via nucleus sampling.

    stopSequences?: string[]

    Array of sequences that will stop generation when encountered.

    cachePrompt?: string

    Cache point type for the system prompt.

    cacheTools?: string

    Cache point type for tools.

    additionalRequestFields?: JSONValue

    Additional fields to include in the Bedrock request.

    additionalResponseFieldPaths?: string[]

    Additional response field paths to extract from the Bedrock response.

    additionalArgs?: JSONValue

    Additional arguments to pass through to the Bedrock Converse API.

    stream?: boolean

    Whether or not to stream responses from the model.

    This will use the ConverseStream API instead of the Converse API.

    includeToolResultStatus?: boolean | "auto"

    Flag to include status field in tool results.

    • true: Always include status field
    • false: Never include status field
    • 'auto': Automatically determine based on model ID (default)
    modelId?: string

    The model identifier. This typically specifies which model to use from the provider's catalog.