rageval - v0.1.1
    Preparing search index...

    Interface AnthropicProviderConfig

    Configuration for the Anthropic (Claude) provider.

    Uses structural typing for the client so you can pass any object that satisfies the interface — useful for mocking in tests.

    interface AnthropicProviderConfig {
        type: "anthropic";
        client: {
            messages: {
                create: (
                    params: {
                        model: string;
                        max_tokens: number;
                        temperature?: number;
                        messages: { role: "user" | "assistant"; content: string }[];
                    },
                    options?: { signal?: AbortSignal },
                ) => Promise<{ content: { type: string; text?: string }[] }>;
            };
        };
        model?: string;
        maxTokens?: number;
        temperature?: number;
        retries?: number;
    }
    Index

    Properties

    type: "anthropic"
    client: {
        messages: {
            create: (
                params: {
                    model: string;
                    max_tokens: number;
                    temperature?: number;
                    messages: { role: "user" | "assistant"; content: string }[];
                },
                options?: { signal?: AbortSignal },
            ) => Promise<{ content: { type: string; text?: string }[] }>;
        };
    }

    An Anthropic client instance from @anthropic-ai/sdk.

    model?: string

    Claude model to use for judging.

    'claude-opus-4-6'
    
    maxTokens?: number

    Maximum tokens in the judge's response. Increase if reasoning is truncated.

    1024
    
    temperature?: number

    Sampling temperature for the judge LLM. Set to 0 for reproducible, deterministic evaluation runs. Leave undefined to use the provider's default.

    retries?: number

    Number of retry attempts for transient errors (rate limits, 5xx). Uses exponential back-off: 500ms, 1s, 2s, ...

    2