pub struct ContextFrame {
pub frame_id: FrameId,
pub scope: FrameScope,
pub round_id: RoundId,
pub model_context: ModelContext,
}Expand description
One deterministic projection of fact state handed to (or from) a model round: identity, scope, the round it belongs to, and the block content.
Fields§
§frame_id: FrameIdDeterministic digest of the scope and round (see FrameId::from_scope).
scope: FrameScopeWhat this frame projects: the single turn or the merged conversation.
round_id: RoundIdThe model round this frame was built for.
model_context: ModelContextThe ordered blocks presented to the model.
Trait Implementations§
Source§impl Clone for ContextFrame
impl Clone for ContextFrame
Source§fn clone(&self) -> ContextFrame
fn clone(&self) -> ContextFrame
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 ContextFrame
impl RefUnwindSafe for ContextFrame
impl Send for ContextFrame
impl Sync for ContextFrame
impl Unpin for ContextFrame
impl UnsafeUnpin for ContextFrame
impl UnwindSafe for ContextFrame
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