pub struct AgentLoopResult {
pub final_text: String,
pub total_input_tokens: u64,
pub total_output_tokens: u64,
pub turns_used: u32,
pub tool_calls: Vec<String>,
}Expand description
Result of running an agent loop.
Fields§
§final_text: StringFinal text output from the agent.
total_input_tokens: u64Total input tokens used across all turns.
total_output_tokens: u64Total output tokens used across all turns.
turns_used: u32Number of conversation turns used.
tool_calls: Vec<String>Names of tools that were called.
Trait Implementations§
Source§impl Clone for AgentLoopResult
impl Clone for AgentLoopResult
Source§fn clone(&self) -> AgentLoopResult
fn clone(&self) -> AgentLoopResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AgentLoopResult
impl RefUnwindSafe for AgentLoopResult
impl Send for AgentLoopResult
impl Sync for AgentLoopResult
impl Unpin for AgentLoopResult
impl UnsafeUnpin for AgentLoopResult
impl UnwindSafe for AgentLoopResult
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