pub struct SubagentFailedData {
pub agent_display_name: String,
pub agent_name: String,
pub duration_ms: Option<f64>,
pub error: String,
pub model: Option<String>,
pub tool_call_id: String,
pub total_tokens: Option<f64>,
pub total_tool_calls: Option<f64>,
}Expand description
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
duration_ms: Option<f64>Wall-clock duration of the sub-agent execution in milliseconds
error: StringError message describing why the sub-agent failed
model: Option<String>Model used by the sub-agent (if any model calls succeeded before failure)
tool_call_id: StringTool call ID of the parent tool invocation that spawned this sub-agent
total_tokens: Option<f64>Total tokens (input + output) consumed before the sub-agent failed
total_tool_calls: Option<f64>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
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 SubagentFailedData
impl Debug for SubagentFailedData
Source§impl<'de> Deserialize<'de> for SubagentFailedData
impl<'de> Deserialize<'de> for SubagentFailedData
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SubagentFailedData
impl RefUnwindSafe for SubagentFailedData
impl Send for SubagentFailedData
impl Sync for SubagentFailedData
impl Unpin for SubagentFailedData
impl UnsafeUnpin for SubagentFailedData
impl UnwindSafe for SubagentFailedData
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