@langwatch/scenario
    Preparing search index...

    Interface JudgeAgentConfig

    Configuration for the judge agent.

    interface JudgeAgentConfig {
        criteria?: string[];
        maxDiscoverySteps?: number;
        maxTokens?: number;
        model?: LanguageModel;
        name?: string;
        spanCollector?: JudgeSpanCollector;
        systemPrompt?: string;
        temperature?: number;
        tokenThreshold?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    criteria?: string[]

    The criteria that the judge will use to evaluate the conversation.

    maxDiscoverySteps?: number

    Maximum number of tool-calling steps for progressive trace discovery. Only applies when the trace exceeds the token threshold.

    10
    
    maxTokens?: number = ...
    model?: LanguageModel = ...
    name?: string

    The name of the agent.

    spanCollector?: JudgeSpanCollector

    Optional span collector for telemetry. Defaults to global singleton.

    systemPrompt?: string

    A custom system prompt to override the default behavior of the judge.

    temperature?: number = ...
    tokenThreshold?: number

    Token threshold for switching to structure-only trace rendering. When the full trace digest exceeds this estimated token count, the judge receives a structure-only view with expand_trace and grep_trace tools for progressive discovery.

    8192