pub struct ModelTurn {
pub response: MessageResponse,
pub usage: TokenUsage,
}Expand description
A model call’s result: the typed response plus the token usage recorded for it. Identical whether the call was executed live or replayed.
Fields§
§response: MessageResponseThe model’s response.
usage: TokenUsageThe recorded token usage for this call.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelTurn
impl RefUnwindSafe for ModelTurn
impl Send for ModelTurn
impl Sync for ModelTurn
impl Unpin for ModelTurn
impl UnsafeUnpin for ModelTurn
impl UnwindSafe for ModelTurn
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