@langwatch/scenario
    Preparing search index...

    Function message

    • Add a specific message to the conversation.

      This function allows you to inject any CoreMessage compatible message directly into the conversation at a specific point in the script. Useful for simulating tool responses, system messages, or specific conversational states.

      Parameters

      • message: CoreMessage

        The message to add to the conversation.

      Returns ScriptStep

      A ScriptStep function that can be used in scenario scripts.