pub struct SubagentFailedData {Show 14 fields
pub agent_display_name: String,
pub agent_name: String,
pub configured_model_matches_actual: Option<bool>,
pub configured_model_preference: Option<String>,
pub duration_ms: Option<i64>,
pub error: String,
pub explicit_model_matches_preference: Option<bool>,
pub explicit_model_override: Option<String>,
pub first_dispatched_model: Option<String>,
pub model: Option<String>,
pub model_override_reason: Option<String>,
pub tool_call_id: String,
pub total_tokens: Option<i64>,
pub total_tool_calls: Option<i64>,
}Expand description
Session event “subagent.failed”. Sub-agent failure details including error message and agent information
Fields§
§agent_display_name: StringHuman-readable display name of the sub-agent
agent_name: StringInternal name of the sub-agent
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
error: StringError message describing why the sub-agent failed
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 selected for the sub-agent, when known
model_override_reason: Option<String>Why an explicit task-call model did not become the effective model
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 before the sub-agent failed
total_tool_calls: Option<i64>Total number of tool calls made before the sub-agent failed
Trait Implementations§
Source§impl Clone for SubagentFailedData
impl Clone for SubagentFailedData
Source§fn clone(&self) -> SubagentFailedData
fn clone(&self) -> SubagentFailedData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more