pub struct DrafterContext {
pub prefill: bool,
pub carry: bool,
}Expand description
2026-09-25: Which halves of the drafter context are configured. resolve
never returns carry without prefill.
Fields§
§prefill: bool2026-09-25: Capture prompt hiddens and batch-prefill the drafter KV.
carry: bool2026-09-25: Carry the drafter KV across turns of a session; it runs only
when mtp_carry::carry_armed also holds.
Implementations§
Trait Implementations§
Source§impl Clone for DrafterContext
impl Clone for DrafterContext
Source§fn clone(&self) -> DrafterContext
fn clone(&self) -> DrafterContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DrafterContext
impl Debug for DrafterContext
Source§impl Default for DrafterContext
impl Default for DrafterContext
Source§impl PartialEq for DrafterContext
impl PartialEq for DrafterContext
impl Copy for DrafterContext
impl Eq for DrafterContext
impl StructuralPartialEq for DrafterContext
Auto Trait Implementations§
impl Freeze for DrafterContext
impl RefUnwindSafe for DrafterContext
impl Send for DrafterContext
impl Sync for DrafterContext
impl Unpin for DrafterContext
impl UnwindSafe for DrafterContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.