pub enum MemoryPipelinePolicy {
Allowed,
SuppressedByCurrentContract,
RecallOnlyNonUserTurn,
}Expand description
What automatic memory may do on one task.
Variants§
Allowed
SuppressedByCurrentContract
The request the task continues forbade user memory.
RecallOnlyNonUserTurn
No person wrote this turn’s text. Recall stays on so the agent still knows who it works for; persistence stays off so it cannot learn from its own synthetic text.
Implementations§
Source§impl MemoryPipelinePolicy
impl MemoryPipelinePolicy
Sourcepub const fn compile(author: TurnAuthor, user_memory_forbidden: bool) -> Self
pub const fn compile(author: TurnAuthor, user_memory_forbidden: bool) -> Self
Compile the policy: a request that forbade user memory suppresses it; otherwise a person’s turn keeps full memory and a turn no person wrote may only recall.
Sourcepub const fn allows_memory(self) -> bool
pub const fn allows_memory(self) -> bool
Whether automatic memory may be written or learned from this task.
Sourcepub const fn allows_recall(self) -> bool
pub const fn allows_recall(self) -> bool
Whether stored memory may be recalled into this task’s prompt.
pub const fn reason_code(self) -> &'static str
Trait Implementations§
Source§impl Clone for MemoryPipelinePolicy
impl Clone for MemoryPipelinePolicy
impl Copy for MemoryPipelinePolicy
Source§impl Debug for MemoryPipelinePolicy
impl Debug for MemoryPipelinePolicy
impl Eq for MemoryPipelinePolicy
Source§impl PartialEq for MemoryPipelinePolicy
impl PartialEq for MemoryPipelinePolicy
impl StructuralPartialEq for MemoryPipelinePolicy
Auto Trait Implementations§
impl Forget for MemoryPipelinePolicy
impl Freeze for MemoryPipelinePolicy
impl Move for MemoryPipelinePolicy
impl RefUnwindSafe for MemoryPipelinePolicy
impl Send for MemoryPipelinePolicy
impl Sync for MemoryPipelinePolicy
impl Unpin for MemoryPipelinePolicy
impl UnsafeUnpin for MemoryPipelinePolicy
impl UnwindSafe for MemoryPipelinePolicy
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,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more