@langwatch/scenario
    Preparing search index...

    Function agent

    • Generate or specify an agent response in the conversation.

      If content is provided, it will be used as the agent response. If no content is provided, the agent under test will be called to generate its response based on the current conversation state.

      Parameters

      • Optionalcontent: string | CoreMessage

        Optional agent response content. Can be a string or full message object. If undefined, the agent under test will generate content automatically.

      Returns ScriptStep

      A ScriptStep function that can be used in scenario scripts.