pub struct SubagentUsageRolledUpRecord {
pub child_run_id: RunId,
pub parent_run_id: RunId,
pub child_usage_ref: String,
pub parent_usage_ref: String,
pub input_tokens: u32,
pub output_tokens: u32,
pub total_tokens: u32,
pub cost_micros: Option<u64>,
pub currency: Option<String>,
pub terminal_status: SubagentTerminalStatus,
}Expand description
Carries the subagent usage rolled up record record payload for journal, event, or fixture surfaces. Creating or cloning it only preserves serialized SDK state; append, publish, replay, or export effects are documented on the runtime and port methods that store it.
Fields§
§child_run_id: RunIdStable child run id used for typed lineage, lookup, or dedupe.
parent_run_id: RunIdStable parent run id used for typed lineage, lookup, or dedupe.
child_usage_ref: StringTyped child usage ref reference. Resolving or executing it is a separate policy-gated step.
parent_usage_ref: StringTyped parent usage ref reference. Resolving or executing it is a separate policy-gated step.
input_tokens: u32Input tokens used by this record or request.
output_tokens: u32Output tokens used by this record or request.
total_tokens: u32Total tokens used by this record or request.
cost_micros: Option<u64>Optional cost micros value. When absent, callers should use the documented default or skip that optional behavior.
currency: Option<String>Currency code for the cost amount. Cost accounting uses it with amount micros and rate-table version.
terminal_status: SubagentTerminalStatusTerminal status used by this record or request.
Trait Implementations§
Source§impl Clone for SubagentUsageRolledUpRecord
impl Clone for SubagentUsageRolledUpRecord
Source§fn clone(&self) -> SubagentUsageRolledUpRecord
fn clone(&self) -> SubagentUsageRolledUpRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SubagentUsageRolledUpRecord
impl Debug for SubagentUsageRolledUpRecord
Source§impl<'de> Deserialize<'de> for SubagentUsageRolledUpRecord
impl<'de> Deserialize<'de> for SubagentUsageRolledUpRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for SubagentUsageRolledUpRecord
impl PartialEq for SubagentUsageRolledUpRecord
Source§fn eq(&self, other: &SubagentUsageRolledUpRecord) -> bool
fn eq(&self, other: &SubagentUsageRolledUpRecord) -> bool
self and other values to be equal, and is used by ==.