pub struct SubagentResult {
pub name: String,
pub final_response: String,
pub total_turns: usize,
pub tool_count: u32,
pub tool_logs: Vec<ToolCallLog>,
pub usage: TokenUsage,
pub success: bool,
pub duration_ms: u64,
}Expand description
Result from a subagent execution.
Fields§
§name: StringName of the subagent.
final_response: StringThe final text response (only visible part to parent).
total_turns: usizeTotal number of turns taken.
tool_count: u32Number of tool calls made by the subagent.
tool_logs: Vec<ToolCallLog>Log of tool calls made by the subagent.
usage: TokenUsageToken usage statistics.
success: boolWhether the subagent completed successfully.
duration_ms: u64Duration in milliseconds.
Trait Implementations§
Source§impl Clone for SubagentResult
impl Clone for SubagentResult
Source§fn clone(&self) -> SubagentResult
fn clone(&self) -> SubagentResult
Returns a duplicate of the value. Read more
1.0.0 · 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 SubagentResult
impl Debug for SubagentResult
Source§impl<'de> Deserialize<'de> for SubagentResult
impl<'de> Deserialize<'de> for SubagentResult
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 SubagentResult
impl RefUnwindSafe for SubagentResult
impl Send for SubagentResult
impl Sync for SubagentResult
impl Unpin for SubagentResult
impl UnwindSafe for SubagentResult
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