ReadonlyconfigThe scenario configuration.
ReadonlydescriptionThe scenario description.
The current turn number in the scenario.
The sequence of messages exchanged during the scenario.
The unique identifier for the execution thread.
Adds a message to the scenario's execution state.
The core message to add.
Checks if a tool call for a specific tool exists in the execution state.
The name of the tool.
True if the tool call exists, false otherwise.
Retrieves the last agent message from the execution state.
The last agent message.
Retrieves the last message from the execution state.
The last message.
Retrieves the last tool call message for a specific tool.
The name of the tool.
The last tool call message.
Retrieves the last user message from the execution state.
The last user message.
Remove all messages from position index onward.
Truncates the message list and cleans up any pending message queues so no agent sees stale messages.
Truncate point (clamped to [0, messages.length]).
Messages at positions >= index are removed.
The removed messages (empty array if nothing to remove).
Defines the state of a scenario execution.