pub struct SubAgentResult {
pub success: bool,
pub output: String,
pub duration_ms: u64,
pub tool_calls: usize,
pub error: Option<String>,
}Expand description
Result returned by a completed sub-agent.
Fields§
§success: boolWhether the sub-agent completed successfully.
output: StringOutput text from the sub-agent (last assistant message).
duration_ms: u64Wall-clock duration in milliseconds.
tool_calls: usizeNumber of tool calls the sub-agent made.
error: Option<String>Error message (if success is false).
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 moreAuto Trait Implementations§
impl Freeze for SubAgentResult
impl RefUnwindSafe for SubAgentResult
impl Send for SubAgentResult
impl Sync for SubAgentResult
impl Unpin for SubAgentResult
impl UnsafeUnpin 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