pub struct ExecutionSummary {
pub had_tool_calls: bool,
pub had_code_execution: bool,
pub started_at_ms: u64,
pub duration_ms: u64,
}Expand description
High-level execution summary for a completed turn.
Fields§
§had_tool_calls: bool§had_code_execution: bool§started_at_ms: u64Wall-clock turn start as epoch milliseconds, read from the runtime
Clock. The measurement window opens when the runtime starts
claiming the turn (session-execution lease / queued-work claim), so
it covers the whole host-visible turn. 0 when the turn predates
this field.
duration_ms: u64Whole-turn duration in milliseconds — claim through final commit and
post-persist hooks — measured on the runtime Clock’s monotonic
source. 0 when the turn predates this field.
Trait Implementations§
Source§impl Clone for ExecutionSummary
impl Clone for ExecutionSummary
Source§fn clone(&self) -> ExecutionSummary
fn clone(&self) -> ExecutionSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutionSummary
impl Debug for ExecutionSummary
Source§impl Default for ExecutionSummary
impl Default for ExecutionSummary
Source§fn default() -> ExecutionSummary
fn default() -> ExecutionSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExecutionSummary
impl<'de> Deserialize<'de> for ExecutionSummary
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExecutionSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExecutionSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ExecutionSummary> for RemoteExecutionSummary
impl From<ExecutionSummary> for RemoteExecutionSummary
Source§fn from(value: ExecutionSummary) -> RemoteExecutionSummary
fn from(value: ExecutionSummary) -> RemoteExecutionSummary
Converts to this type from the input type.
Source§impl Serialize for ExecutionSummary
impl Serialize for ExecutionSummary
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ExecutionSummary
impl RefUnwindSafe for ExecutionSummary
impl Send for ExecutionSummary
impl Sync for ExecutionSummary
impl Unpin for ExecutionSummary
impl UnsafeUnpin for ExecutionSummary
impl UnwindSafe for ExecutionSummary
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