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 Forget for AgentResult
impl Freeze for AgentResult
impl Move for AgentResult
impl RefUnwindSafe for AgentResult
impl Send for AgentResultwhere
RawVecInner: Send,
impl Sync for AgentResultwhere
RawVecInner: Sync,
impl Unpin for AgentResult
impl UnsafeUnpin for AgentResult
impl UnwindSafe for AgentResultwhere
RawVecInner: UnwindSafe,
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