model_view
model_view
The conversation entries the model gets on its next request, oldest first, after the history modes of the steps entered so far. Use it to check that a step sees what you expect, such as a confirm step that sees only its read-back.
keepremoves nothing, anddefaultremoves earlier step instructions.hidealso removes every earlier turn, tool call, tool result, and system note for the rest of the call;isolatedoes the same until the call leaves the step.spokenremoves earlier instructions, tool calls, tool results, and system notes for the rest of the call, and keeps every spoken turn.hide,isolate, andspokenkeep the exchange that entered the step: the call whose action changed it, its result, notes, and say, and caller words stored before the step was injected. A change bynext_stepkeeps nothing.- An end step takes no history pass.
The current step’s instructions show its text expanded with the global data now;
call_log keeps the text as it went in. A result’s say comes after the call’s
result and notes, held until the next caller or agent turn. The base prompt isn’t
included.
Returns
list[dict[str, Any]] — The entries, each with role and content, and
tool_calls on a tool call.
Raises
NotImplementedError once the call has entered a step with a reset, which the
simulator doesn’t follow.
Example
The confirm step uses isolate, so the model sees only the exchange that entered it: