pub struct AgentNodeActivity {Show 15 fields
pub turns: u64,
pub input_tokens: u64,
pub output_tokens: u64,
pub duration_ms: u64,
pub effects: u64,
pub effects_by_label: BTreeMap<String, u64>,
pub effect_errors: u64,
pub replayed: u64,
pub tool_calls: u64,
pub tool_errors: u64,
pub handoffs_out: u64,
pub suspensions: u64,
pub spawned: u64,
pub completions: u64,
pub failures: u64,
}Expand description
One step node’s share of the run’s agentic work. Spawned instances
appear under their own hierarchical ids (parent/label).
Token, turn and duration totals come from the accounting events
(AgentStepCompleted, whose totals are cumulative, or the cost a
Suspended carries when nothing completed after it) — never by
summing both, which would double-count a resumed run.
Fields§
§turns: u64Agent turns this node ran.
input_tokens: u64Prompt tokens this node consumed.
output_tokens: u64Completion tokens this node produced.
duration_ms: u64Wall time from the accounting events (see the type docs).
effects: u64Effects this node performed or replayed.
effects_by_label: BTreeMap<String, u64>Effect counts by label (llm:<model>, tool:<name>, …).
effect_errors: u64Effects that completed carrying an error result.
replayed: u64Of effects, how many were served from the journal.
tool_calls: u64Tool invocations this node made.
tool_errors: u64Tool invocations that returned an error.
handoffs_out: u64Control handoffs this node emitted to other nodes.
suspensions: u64Times this node suspended awaiting external input.
spawned: u64Instances this node fanned out (sum over its AgentSpawneds).
completions: u64AgentStepCompleted events with failed: false / true.
failures: u64Completions that reported failed: true.
Trait Implementations§
Source§impl Clone for AgentNodeActivity
impl Clone for AgentNodeActivity
Source§fn clone(&self) -> AgentNodeActivity
fn clone(&self) -> AgentNodeActivity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more