pub struct TurnResult {
pub assistant_message: AgentResponse,
pub context_reset: bool,
pub harness_report: Option<String>,
pub provider_conversation_id: Option<String>,
pub usage: TurnUsage,
}Expand description
Normalized result returned when one agent turn completes successfully.
Fields§
§assistant_message: AgentResponseParsed agent response containing structured protocol messages.
context_reset: boolWhether the provider reset its context to complete this turn.
harness_report: Option<String>Content-free JSON report of an in-process harness turn: per-request
usage, context fitting, corrections, and tool activity. Other agents
return None.
provider_conversation_id: Option<String>Provider-native conversation identifier observed after the turn.
App-server providers return this so the worker can persist it for
future runtime restarts. CLI channels always return None.
Opaque runtime conversation identifier.
usage: TurnUsageTokens and estimated charge of every model the turn used, as its backend reported them.
Trait Implementations§
Auto Trait Implementations§
impl Forget for TurnResult
impl Freeze for TurnResult
impl Move for TurnResult
impl RefUnwindSafe for TurnResult
impl Send for TurnResult
impl Sync for TurnResult
impl Unpin for TurnResult
impl UnsafeUnpin for TurnResult
impl UnwindSafe for TurnResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more