pub struct BeforeModelStepContext {
pub session_id: SessionId,
pub model_turn: usize,
pub max_model_turns: usize,
pub session_usage: Option<SessionUsage>,
pub generation_config: GenerationConfig,
}Expand description
Read-only context supplied to a before_model_step hook.
Fields§
§session_id: SessionIdOwning session identity.
model_turn: usizeOne-based model turn index about to execute in this run/burst.
max_model_turns: usizeConfigured turn budget for the current loop.
session_usage: Option<SessionUsage>Latest recorded session usage snapshot, when available.
generation_config: GenerationConfigActive generation controls that will be sent unless overridden.
Trait Implementations§
Source§impl Clone for BeforeModelStepContext
impl Clone for BeforeModelStepContext
Source§impl Debug for BeforeModelStepContext
impl Debug for BeforeModelStepContext
impl Eq for BeforeModelStepContext
Source§impl PartialEq for BeforeModelStepContext
impl PartialEq for BeforeModelStepContext
Source§impl Serialize for BeforeModelStepContext
impl Serialize for BeforeModelStepContext
impl StructuralPartialEq for BeforeModelStepContext
Auto Trait Implementations§
impl Forget for BeforeModelStepContext
impl Freeze for BeforeModelStepContext
impl Move for BeforeModelStepContext
impl RefUnwindSafe for BeforeModelStepContext
impl Send for BeforeModelStepContextwhere
RawVecInner: Send,
impl Sync for BeforeModelStepContextwhere
RawVecInner: Sync,
impl Unpin for BeforeModelStepContext
impl UnsafeUnpin for BeforeModelStepContext
impl UnwindSafe for BeforeModelStepContextwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.