pub struct GroupResult {
pub results: Vec<AgentGroupOutput>,
pub total_duration_ms: u64,
}Expand description
Aggregate result from a group execution.
Fields§
§results: Vec<AgentGroupOutput>Per-agent outputs, in agent order.
total_duration_ms: u64Total execution time in milliseconds.
Implementations§
Source§impl GroupResult
impl GroupResult
Sourcepub fn all_succeeded(&self) -> bool
pub fn all_succeeded(&self) -> bool
Check if all agents succeeded.
Sourcepub fn has_failures(&self) -> bool
pub fn has_failures(&self) -> bool
Check if any agents failed.
Unlike !all_succeeded(), this clearly conveys intent for callers
that need to handle partial failures.
Sourcepub fn success_count(&self) -> usize
pub fn success_count(&self) -> usize
Number of agents that completed successfully.
Sourcepub fn combined_content(&self) -> String
pub fn combined_content(&self) -> String
Get the combined content from all agents.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GroupResult
impl RefUnwindSafe for GroupResult
impl Send for GroupResult
impl Sync for GroupResult
impl Unpin for GroupResult
impl UnsafeUnpin for GroupResult
impl UnwindSafe for GroupResult
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