pub struct SubagentCompletedData {
pub agent_display_name: String,
pub agent_name: String,
pub duration_ms: Option<f64>,
pub model: Option<String>,
pub tool_call_id: String,
pub total_tokens: Option<f64>,
pub total_tool_calls: Option<f64>,
}Expand description
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
duration_ms: Option<f64>Wall-clock duration of the sub-agent execution in milliseconds
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<f64>Total tokens (input + output) consumed by the sub-agent
total_tool_calls: Option<f64>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
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 SubagentCompletedData
impl Debug for SubagentCompletedData
Source§impl<'de> Deserialize<'de> for SubagentCompletedData
impl<'de> Deserialize<'de> for SubagentCompletedData
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 SubagentCompletedData
impl RefUnwindSafe for SubagentCompletedData
impl Send for SubagentCompletedData
impl Sync for SubagentCompletedData
impl Unpin for SubagentCompletedData
impl UnsafeUnpin for SubagentCompletedData
impl UnwindSafe for SubagentCompletedData
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