langchain.js
    Preparing search index...

    Interface ChatAnthropicCallOptions

    interface ChatAnthropicCallOptions {
        betas?: AnthropicBeta[];
        container?: string;
        headers?: Record<string, string>;
        mcp_servers?: BetaRequestMCPServerURLDefinition[];
        output_format?: BetaJSONOutputFormat;
        streamUsage?: boolean;
        tool_choice?: AnthropicToolChoice;
        tools?: any[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    betas?: AnthropicBeta[]

    Optional array of beta features to enable for the Anthropic API. Beta features are experimental capabilities that may change or be removed. See https://docs.anthropic.com/en/api/versioning for available beta features.

    container?: string

    Container ID for file persistence across turns with code execution. Used with the code_execution_20250825 tool.

    headers?: Record<string, string>

    Custom headers to pass to the Anthropic API when making a request.

    mcp_servers?: BetaRequestMCPServerURLDefinition[]

    Array of MCP server URLs to use for the request.

    output_format?: BetaJSONOutputFormat

    Output format to use for the response.

    streamUsage?: boolean

    Whether or not to include token usage data in streamed chunks.

    true
    
    tool_choice?: AnthropicToolChoice

    Whether or not to specify what tool the model should use

    "auto"
    
    tools?: any[]