#[non_exhaustive]pub struct SwarmRun {
pub answer: String,
pub agent: String,
pub agents: Vec<String>,
pub handoffs: Vec<Handoff>,
pub usage: Usage,
pub elapsed: Duration,
}Expand description
A swarm run that ended with an answer.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.answer: StringThe final answer.
agent: StringThe agent that gave it.
agents: Vec<String>Every agent turn, in order, the last one included.
handoffs: Vec<Handoff>Every handoff, in order.
usage: UsageThe model tokens all the agents spent.
elapsed: DurationHow long the run took.
Trait Implementations§
Auto Trait Implementations§
impl Forget for SwarmRun
impl Freeze for SwarmRun
impl Move for SwarmRun
impl RefUnwindSafe for SwarmRun
impl Send for SwarmRun
impl Sync for SwarmRun
impl Unpin for SwarmRun
impl UnsafeUnpin for SwarmRun
impl UnwindSafe for SwarmRun
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