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§
Auto 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