@langwatch/scenario
    Preparing search index...

    Class JudgeAgentAdapterAbstract

    Abstract base class for judge agents. Judge agents are responsible for evaluating the conversation and determining success or failure.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    criteria: string[]

    The criteria the judge will use to evaluate the conversation.

    name: string = "JudgeAgent"
    role: AgentRole = AgentRole.JUDGE

    Methods

    • Process the input and generate a response.

      This is the main method that your agent implementation must provide. It receives structured information about the current conversation state and must return a response in one of the supported formats.

      Parameters

      • input: AgentInput

        AgentInput containing conversation history, thread context, and scenario state.

      Returns Promise<AgentReturnTypes>

      The agent's response.