pub struct ToolLoopOutcome {
pub completion: Completion,
pub messages: Vec<Turn>,
pub steps: Vec<StepUsage>,
}Expand description
What a finished tool loop produced (issue #665).
Fields§
§completion: CompletionThe final completion — the one that asked for no tool.
messages: Vec<Turn>The transcript the loop built: the prompt’s own turns, then one
assistant turn carrying each round’s requested calls and one user
turn carrying their results. The final answer lives in
ToolLoopOutcome::completion and is not duplicated here.
steps: Vec<StepUsage>One entry per model call, in order.
Implementations§
Source§impl ToolLoopOutcome
impl ToolLoopOutcome
Sourcepub fn input_tokens(&self) -> u64
pub fn input_tokens(&self) -> u64
The sum of every step’s input tokens.
Sourcepub fn output_tokens(&self) -> u64
pub fn output_tokens(&self) -> u64
The sum of every step’s output tokens.
Trait Implementations§
Source§impl Clone for ToolLoopOutcome
impl Clone for ToolLoopOutcome
Source§impl Debug for ToolLoopOutcome
impl Debug for ToolLoopOutcome
Source§impl PartialEq for ToolLoopOutcome
impl PartialEq for ToolLoopOutcome
impl StructuralPartialEq for ToolLoopOutcome
Auto Trait Implementations§
impl Freeze for ToolLoopOutcome
impl RefUnwindSafe for ToolLoopOutcome
impl Send for ToolLoopOutcome
impl Sync for ToolLoopOutcome
impl Unpin for ToolLoopOutcome
impl UnsafeUnpin for ToolLoopOutcome
impl UnwindSafe for ToolLoopOutcome
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