ReadonlyconfigThe scenario configuration.
ReadonlycontextsEvery chunk the agent retrieved across the run so far, from the rag spans of the traces.
ReadonlycriteriaThe judge criteria of the scenario, in order.
ReadonlydescriptionThe scenario description.
ReadonlyfieldsThe fields the scenario carries next to its description, its data row.
ReadonlyspansEvery span of every trace of the run collected so far, in start order. Never fetches: a script step reads what the collector holds.
ReadonlytracesOne entry per trace id the messages carry, in first-seen order.
ReadonlyturnsOne entry per turn, with the messages added during it.
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.
One field of the scenario. Nothing when the scenario does not set it or
leaves it blank; 0 and false are values.
The text of the first message the simulated user sent, or an empty string before the first user message.
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).
Every call of a tool across the run so far, in start order, merged from
the tool calls of the assistant messages and the tool spans of the
traces. toolCalls("run_sql").last?.input is the arguments of the last
call. Without a name, every tool call of the run.
Optionalname: stringThe conversation so far as one role: content line per message.
The state the evaluator runner resolves mappings against.