@langwatch/scenario
    Preparing search index...

    Function user

    • Generate or specify a user message in the conversation.

      If content is provided, it will be used as the user message. If no content is provided, the user simulator agent will automatically generate an appropriate message based on the scenario context.

      Parameters

      • Optionalcontent: string | CoreMessage

        Optional user message content. Can be a string or full message object. If undefined, the user simulator will generate content automatically.

      Returns ScriptStep

      A ScriptStep function that can be used in scenario scripts.