pub struct ToolLoopResult {
pub response: ChatResponse,
pub iterations: u32,
pub total_usage: Usage,
pub termination_reason: TerminationReason,
}Expand description
The result of a completed tool loop.
Fields§
§response: ChatResponseThe final response from the LLM (after all tool iterations).
iterations: u32How many generate-execute iterations were performed.
total_usage: UsageAccumulated usage across all iterations.
termination_reason: TerminationReasonWhy the loop terminated.
This provides observability into the loop’s completion reason, useful for debugging and monitoring agent behavior.
Trait Implementations§
Source§impl Clone for ToolLoopResult
impl Clone for ToolLoopResult
Source§fn clone(&self) -> ToolLoopResult
fn clone(&self) -> ToolLoopResult
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 ToolLoopResult
impl RefUnwindSafe for ToolLoopResult
impl Send for ToolLoopResult
impl Sync for ToolLoopResult
impl Unpin for ToolLoopResult
impl UnwindSafe for ToolLoopResult
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