pub struct MemoryContext<'a> {
pub facts: &'a [Fact],
pub episodes: &'a [Episode],
pub goals: &'a [RecallGoal],
pub patterns: &'a [BehaviorPattern],
pub procedures: &'a [Procedure],
pub error_solutions: &'a [ErrorSolution],
pub profile: Option<&'a UserProfile>,
pub people: &'a [Person],
pub current_person: Option<&'a Person>,
pub current_person_facts: &'a [PersonFact],
pub scheduled_goals_tool: bool,
}Expand description
Extended context for memory-rich system prompts. Query-ranked items are selectively rendered into the volatile tail; the full stores remain available through on-demand memory tools.
Fields§
§facts: &'a [Fact]§episodes: &'a [Episode]§goals: &'a [RecallGoal]§patterns: &'a [BehaviorPattern]§procedures: &'a [Procedure]§error_solutions: &'a [ErrorSolution]§profile: Option<&'a UserProfile>§people: &'a [Person]All tracked people (injected only in owner DMs)
current_person: Option<&'a Person>The current speaker (resolved from sender_id), if any
current_person_facts: &'a [PersonFact]Facts about the current speaker
scheduled_goals_tool: boolThe host offers manage_automations, so the memory guide points at
it for scheduled tasks and reminders.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for MemoryContext<'a>
impl<'a> Freeze for MemoryContext<'a>
impl<'a> Move for MemoryContext<'a>
impl<'a> RefUnwindSafe for MemoryContext<'a>
impl<'a> Send for MemoryContext<'a>
impl<'a> Sync for MemoryContext<'a>
impl<'a> Unpin for MemoryContext<'a>
impl<'a> UnsafeUnpin for MemoryContext<'a>
impl<'a> UnwindSafe for MemoryContext<'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
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