pub struct ContextRequest<'a> {
pub point: SessionPoint,
pub turn_id: TypedId<TurnMarker>,
pub iteration: usize,
pub model: &'a ModelSpec,
pub token_limit: Option<usize>,
pub messages: &'a [Message],
pub events: &'a dyn EventStore,
}Expand description
Everything a context policy needs to shape one model request.
Fields§
§point: SessionPointImmutable durable head whose history is being assembled.
turn_id: TypedId<TurnMarker>Turn about to invoke the model.
iteration: usizeOne-based reason iteration within the turn.
model: &'a ModelSpecEffective model after per-turn overrides.
token_limit: Option<usize>Optional input ceiling configured by the application.
messages: &'a [Message]Complete replayed history at point.
events: &'a dyn EventStorePaged access to the authoritative stream for policies that maintain their own summaries, indexes, or historical windows.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ContextRequest<'a>
impl<'a> !UnwindSafe for ContextRequest<'a>
impl<'a> Freeze for ContextRequest<'a>
impl<'a> Send for ContextRequest<'a>
impl<'a> Sync for ContextRequest<'a>
impl<'a> Unpin for ContextRequest<'a>
impl<'a> UnsafeUnpin for ContextRequest<'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