pub struct TurnProgress<'a> {
pub api_calls: u32,
pub tool_calls: u32,
pub structured_output_calls: u32,
pub stop_reason: &'a str,
}Expand description
How far into a turn we are.
Fields§
§api_calls: u32Model calls made in this turn so far.
tool_calls: u32Tool calls dispatched in this turn so far.
structured_output_calls: u32How many structured-output retries the model has spent.
stop_reason: &'a strThe stop reason the model itself gave for the last call. Empty before the first call.
Trait Implementations§
Source§impl<'a> Clone for TurnProgress<'a>
impl<'a> Clone for TurnProgress<'a>
impl<'a> Copy for TurnProgress<'a>
Source§impl<'a> Debug for TurnProgress<'a>
impl<'a> Debug for TurnProgress<'a>
impl<'a> Eq for TurnProgress<'a>
Source§impl<'a> PartialEq for TurnProgress<'a>
impl<'a> PartialEq for TurnProgress<'a>
impl<'a> StructuralPartialEq for TurnProgress<'a>
Auto Trait Implementations§
impl<'a> Forget for TurnProgress<'a>
impl<'a> Freeze for TurnProgress<'a>
impl<'a> Move for TurnProgress<'a>
impl<'a> RefUnwindSafe for TurnProgress<'a>
impl<'a> Send for TurnProgress<'a>
impl<'a> Sync for TurnProgress<'a>
impl<'a> Unpin for TurnProgress<'a>
impl<'a> UnsafeUnpin for TurnProgress<'a>
impl<'a> UnwindSafe for TurnProgress<'a>
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