pub enum ContextSlot {
Summaries(Option<Message>),
CrossSession(Option<Message>),
SemanticRecall(Option<Message>, Option<f32>),
DocumentRag(Option<Message>),
Corrections(Option<Message>),
CodeContext(Option<String>),
GraphFacts(Option<Message>),
PersonaFacts(Option<Message>),
TrajectoryHints(Option<Message>),
TreeMemory(Option<Message>),
}Expand description
Tagged output of each concurrent context-fetch future.
Using an enum instead of a tuple allows individual sources to be added or removed (including cfg-gated ones) without rewriting the join combinator.
Variants§
Summaries(Option<Message>)
Past-session summaries (contextual recall).
CrossSession(Option<Message>)
Cross-session memory recall.
SemanticRecall(Option<Message>, Option<f32>)
Semantic recall result. Carries the formatted message and the top-1 similarity score.
DocumentRag(Option<Message>)
Document RAG result.
Corrections(Option<Message>)
Past user corrections recalled for this turn.
CodeContext(Option<String>)
Code-index RAG result (repo-map or file context).
GraphFacts(Option<Message>)
Knowledge graph fact recall.
PersonaFacts(Option<Message>)
Persona memory facts injected after the system prompt (#2461).
TrajectoryHints(Option<Message>)
Top-k procedural trajectory hints recalled for the current turn (#2498).
TreeMemory(Option<Message>)
TiMem tree summary nodes recalled for context (#2262).
Auto Trait Implementations§
impl Freeze for ContextSlot
impl RefUnwindSafe for ContextSlot
impl Send for ContextSlot
impl Sync for ContextSlot
impl Unpin for ContextSlot
impl UnsafeUnpin for ContextSlot
impl UnwindSafe for ContextSlot
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request