pub struct SubagentCompletedData {Show 13 fields
pub agent_display_name: String,
pub agent_name: String,
pub cancelled: Option<bool>,
pub configured_model_matches_actual: Option<bool>,
pub configured_model_preference: Option<String>,
pub duration_ms: Option<i64>,
pub explicit_model_matches_preference: Option<bool>,
pub explicit_model_override: Option<String>,
pub first_dispatched_model: Option<String>,
pub model: Option<String>,
pub tool_call_id: String,
pub total_tokens: Option<i64>,
pub total_tool_calls: Option<i64>,
}Expand description
Session event “subagent.completed”. Sub-agent completion details for successful execution
Fields§
§agent_display_name: StringHuman-readable display name of the sub-agent
agent_name: StringInternal name of the sub-agent
cancelled: Option<bool>Whether the sub-agent was torn down by cancellation - its own abort, or an ancestor being killed - instead of finishing its work. Cancellation is not a failure, so the run still reports completion; this distinguishes a torn-down sub-agent from one that ran to the end.
configured_model_matches_actual: Option<bool>Whether the first model actually dispatched matched the user’s configured preference
configured_model_preference: Option<String>Concrete model the user configured for this sub-agent via /subagents, when present
duration_ms: Option<i64>Wall-clock duration of the sub-agent execution in milliseconds
explicit_model_matches_preference: Option<bool>Whether the explicit task-call model matched the user’s configured preference
explicit_model_override: Option<String>Explicit model supplied by the parent agent on the task call, when present
first_dispatched_model: Option<String>First model for which the sub-agent started an inference request, when one was dispatched
model: Option<String>Model used by the sub-agent
tool_call_id: StringTool call ID of the parent tool invocation that spawned this sub-agent
total_tokens: Option<i64>Total tokens (input + output) consumed by the sub-agent
total_tool_calls: Option<i64>Total number of tool calls made by the sub-agent
Trait Implementations§
Source§impl Clone for SubagentCompletedData
impl Clone for SubagentCompletedData
Source§fn clone(&self) -> SubagentCompletedData
fn clone(&self) -> SubagentCompletedData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more