Configuration options for the Anthropic LLM plugin.

interface LLMOptions {
    apiKey?: string;
    baseURL?: string;
    client?: Anthropic;
    maxTokens?: number;
    model: string | string & Record<never, never>;
    parallelToolCalls?: boolean;
    temperature?: number;
    toolChoice?: llm.ToolChoice;
}

Properties

apiKey?: string

Anthropic API key. Falls back to the ANTHROPIC_API_KEY environment variable.

baseURL?: string

Custom base URL for the Anthropic API.

client?: Anthropic

Pre-configured Anthropic client instance.

maxTokens?: number

Maximum number of tokens in the response. Defaults to 4096.

model: string | string & Record<never, never>

The model identifier to use.

parallelToolCalls?: boolean

Whether to allow parallel tool calls.

temperature?: number

Sampling temperature.

toolChoice?: llm.ToolChoice

Tool selection strategy.