pub struct AssistantTurn {
pub message: String,
pub done: bool,
pub usage: Option<Usage>,
pub session_id: Option<String>,
pub events: Vec<ToolEvent>,
pub mock_calls: Option<Vec<MockCall>>,
pub history_command: Option<String>,
}Expand description
An assistant/skill turn produced by the provider.
Fields§
§message: String§done: boolThe skill signalled it considers the task complete.
usage: Option<Usage>Cost/token usage for this call, if the provider reported it.
session_id: Option<String>A session handle the runner can pass back on the next respond call to
continue the same conversation against the real harness (only some
harnesses expose this — see OneharnessProvider::supports_resume).
events: Vec<ToolEvent>Normalized tool events the skill took this turn (shell commands, file
edits, tool uses), from oneharness --events. Empty when the harness
exposed no tool transcript. Attached to the assistant message so consumers
can analyze — and stream — what the skill did.
mock_calls: Option<Vec<MockCall>>The mock/spy channel’s records for this turn — every observed tool call
with its original input and the verdict applied. None when the channel
was off (or the provider has no channel); Some(vec![]) when it was on
and the turn made no tool calls. The distinction matters: a spy on a
channel-less run must err loudly, not read as “zero calls”.
history_command: Option<String>A ready-to-run command that replays this run’s recorded history (e.g.
oneharness history show <name> --history-dir <dir>), set when the
provider recorded run history for the turn. None for providers/configs
that record none. Only the skill-running provider (oneharness, with
history enabled) sets it; the runner lifts it onto the
crate::report::CaseRun so a past run can be reviewed.
Trait Implementations§
Source§impl Clone for AssistantTurn
impl Clone for AssistantTurn
Source§fn clone(&self) -> AssistantTurn
fn clone(&self) -> AssistantTurn
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more