pub struct AgentResult {
pub response: String,
pub messages: Vec<Message>,
pub usage: TokenUsage,
pub turns: usize,
}Expand description
The result of a completed agent loop run.
Fields§
§response: StringThe final text response from the model.
messages: Vec<Message>All messages in the conversation (including tool calls/results).
usage: TokenUsageCumulative token usage across all turns.
turns: usizeNumber of turns completed.
Trait Implementations§
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