pub struct TurnStartContext {
pub turn: usize,
pub query: String,
}Expand description
Context for LoopObserver::on_turn_start.
Provides the turn number and the user query that initiated it.
Fields§
§turn: usizeTurn number (0-indexed).
Monotonically increasing within a session; resets on session restart.
query: StringThe user query that initiated this turn.
Contains the full text of the latest user message added to the conversation before the turn began.
Trait Implementations§
Source§impl Clone for TurnStartContext
impl Clone for TurnStartContext
Source§fn clone(&self) -> TurnStartContext
fn clone(&self) -> TurnStartContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TurnStartContext
impl RefUnwindSafe for TurnStartContext
impl Send for TurnStartContext
impl Sync for TurnStartContext
impl Unpin for TurnStartContext
impl UnsafeUnpin for TurnStartContext
impl UnwindSafe for TurnStartContext
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