@langwatch/scenario
    Preparing search index...

    Class UserSimulatorAgentAdapterAbstract

    Abstract base class for user simulator agents. User simulator agents are responsible for generating user messages to drive the conversation.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: string = "UserSimulatorAgent"
    role: AgentRole = AgentRole.USER

    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.