pub struct Turn {
pub id: String,
pub text: String,
pub has_audio: bool,
pub tool_calls: Vec<FunctionCall>,
pub started_at: Instant,
pub completed_at: Option<Instant>,
pub interrupted: bool,
}Expand description
Represents a single model response turn.
Fields§
§id: StringUnique turn identifier.
text: StringAccumulated text parts.
has_audio: boolWhether this turn included audio.
tool_calls: Vec<FunctionCall>Tool calls requested in this turn.
started_at: InstantWhen the turn started.
completed_at: Option<Instant>When the turn completed (if complete).
interrupted: boolWhether the turn was interrupted.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Turn
impl RefUnwindSafe for Turn
impl Send for Turn
impl Sync for Turn
impl Unpin for Turn
impl UnwindSafe for Turn
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