pub struct RunResult {
pub output: String,
pub agent_outputs: HashMap<String, String>,
pub total_input_tokens: u32,
pub total_output_tokens: u32,
}Expand description
RunResult is what you get back after a crew completes. Contains the final output from the last agent in the graph and all individual agent outputs for inspection.
Fields§
§output: StringThe final output — from the last agent in the dependency graph
agent_outputs: HashMap<String, String>Individual outputs from every agent keyed by agent ID
total_input_tokens: u32Total token usage across all agents
total_output_tokens: u32Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunResult
impl RefUnwindSafe for RunResult
impl Send for RunResult
impl Sync for RunResult
impl Unpin for RunResult
impl UnsafeUnpin for RunResult
impl UnwindSafe for RunResult
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