pub struct ExtensionModelContextProjection { /* private fields */ }Implementations§
Source§impl ExtensionModelContextProjection
impl ExtensionModelContextProjection
pub fn rebuild( entries: impl IntoIterator<Item = ExtensionDurableEntry>, ) -> Result<Self, ExtensionModelContextProjectionError>
pub fn items(&self) -> Vec<ExtensionModelContextItem>
pub fn into_items(self) -> Vec<ExtensionModelContextItem>
Sourcepub fn replace(
&self,
entries: impl IntoIterator<Item = ExtensionDurableEntry>,
) -> Result<(), ExtensionModelContextProjectionError>
pub fn replace( &self, entries: impl IntoIterator<Item = ExtensionDurableEntry>, ) -> Result<(), ExtensionModelContextProjectionError>
Replace the live branch projection while retaining all shared handles.
Sourcepub fn apply_to_request(&self, request: &mut NormalizedModelRequestDraft)
pub fn apply_to_request(&self, request: &mut NormalizedModelRequestDraft)
Add the de-duplicated model-visible projection to one normalized model request. This never mutates the persisted agent transcript.
Sourcepub fn compaction_messages(&self) -> Vec<AgentMessage>
pub fn compaction_messages(&self) -> Vec<AgentMessage>
Project the de-duplicated model-visible entries into one compaction-only message list. Private state and custom events never enter this list.
Trait Implementations§
Source§impl Clone for ExtensionModelContextProjection
impl Clone for ExtensionModelContextProjection
Source§fn clone(&self) -> ExtensionModelContextProjection
fn clone(&self) -> ExtensionModelContextProjection
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 moreSource§impl Default for ExtensionModelContextProjection
impl Default for ExtensionModelContextProjection
Source§fn default() -> ExtensionModelContextProjection
fn default() -> ExtensionModelContextProjection
Returns the “default value” for a type. Read more
impl Eq for ExtensionModelContextProjection
Auto Trait Implementations§
impl !RefUnwindSafe for ExtensionModelContextProjection
impl !UnwindSafe for ExtensionModelContextProjection
impl Freeze for ExtensionModelContextProjection
impl Send for ExtensionModelContextProjection
impl Sync for ExtensionModelContextProjection
impl Unpin for ExtensionModelContextProjection
impl UnsafeUnpin for ExtensionModelContextProjection
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§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.