#[non_exhaustive]pub struct TurnResult {
pub turn_id: TurnId,
pub response: String,
pub iterations: usize,
pub tool_calls: usize,
pub usage: Usage,
}Expand description
The outcome of one executed turn.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.turn_id: TurnIdCorrelates with every event this turn recorded.
response: StringThe model’s final text response.
iterations: usizeLLM completions performed within the turn.
tool_calls: usizeTool calls executed within the turn.
usage: UsageTokens spent across every completion in the turn.
Implementations§
Trait Implementations§
Source§impl Clone for TurnResult
impl Clone for TurnResult
Auto Trait Implementations§
impl Freeze for TurnResult
impl RefUnwindSafe for TurnResult
impl Send for TurnResult
impl Sync for TurnResult
impl Unpin for TurnResult
impl UnsafeUnpin for TurnResult
impl UnwindSafe for TurnResult
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