@langwatch/scenario
    Preparing search index...

    Function judge

    • Invoke the judge agent to evaluate the current conversation state.

      This function forces the judge agent to make a decision about whether the scenario should continue or end with a success/failure verdict. The judge will evaluate based on its configured criteria.

      Parameters

      • Optionalcontent: string | CoreMessage

        Optional message content for the judge. Usually undefined to let the judge evaluate based on its criteria.

      Returns ScriptStep

      A ScriptStep function that can be used in scenario scripts.