pub struct PreparedContext {Show 13 fields
pub graph_facts: Option<Message>,
pub doc_rag: Option<Message>,
pub corrections: Option<Message>,
pub recall: Option<Message>,
pub recall_confidence: Option<f32>,
pub cross_session: Option<Message>,
pub summaries: Option<Message>,
pub code_context: Option<String>,
pub persona_facts: Option<Message>,
pub trajectory_hints: Option<Message>,
pub tree_memory: Option<Message>,
pub memory_first: bool,
pub recent_history_budget: usize,
}Expand description
Result of one context-assembly pass.
All source fields are Option — None means disabled, empty, or budget-exhausted.
session_digest is excluded: it is a cached value injected by Agent::apply_prepared_context.
Fields§
§graph_facts: Option<Message>Knowledge graph fact recall.
doc_rag: Option<Message>Document RAG context.
corrections: Option<Message>Past user corrections.
recall: Option<Message>Semantic recall results.
recall_confidence: Option<f32>Top-1 similarity score from semantic recall.
cross_session: Option<Message>Cross-session memory context.
summaries: Option<Message>Past-conversation summaries.
code_context: Option<String>Code-index RAG context (repo map or file context).
persona_facts: Option<Message>Persona memory facts.
trajectory_hints: Option<Message>Trajectory hints.
tree_memory: Option<Message>TiMem tree memory summary.
memory_first: boolWhether the memory-first context strategy is active for this turn.
recent_history_budget: usizeToken budget for recent conversation history (passed to trim step in apply).
Auto Trait Implementations§
impl Freeze for PreparedContext
impl RefUnwindSafe for PreparedContext
impl Send for PreparedContext
impl Sync for PreparedContext
impl Unpin for PreparedContext
impl UnsafeUnpin for PreparedContext
impl UnwindSafe for PreparedContext
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