pub struct AgentResult {
pub text: String,
pub turns: usize,
pub tool_calls: usize,
pub subagents_spawned: usize,
pub usage: TokenUsage,
}Fields§
§text: String§turns: usize§tool_calls: usize§subagents_spawned: usize§usage: TokenUsageEverything this agent spent, with its subagents and compaction calls already folded in.
Auto Trait Implementations§
impl Freeze for AgentResult
impl RefUnwindSafe for AgentResult
impl Send for AgentResult
impl Sync for AgentResult
impl Unpin for AgentResult
impl UnsafeUnpin for AgentResult
impl UnwindSafe for AgentResult
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