Expand description
Borrow-lens view types used by crate::service::ContextService.
Each view holds &/&mut references to the exact sub-fields that the context
service needs. By accepting lenses instead of &mut Agent<C>, this crate avoids
depending on zeph-core while still letting the call site in zeph-core construct
them from disjoint field projections.
Views are constructed at the call site in zeph-core using one literal struct
expression. The borrow checker proves disjointness at that level without additional
helper methods — each &mut resolves to a unique field path under Agent<C>.
Structs§
- Context
Assembly View - Borrow-lens over all fields needed for
prepare_contextandAgent<C>::rebuild_system_prompt. - Context
Delta - Values produced by
crate::service::ContextService::prepare_contextthat must be applied by the caller. - Context
Summarization View - Borrow-lens over all fields needed for compaction and summarization operations.
- Message
Window View - Borrow-lens over the agent’s conversation window fields.
- Metrics
Counters - Accumulated metric deltas for one context-assembly pass.
- Provider
Handles - Bundle of LLM provider handles needed for async context operations.
Enums§
- Compaction
Outcome - Return type from
compact_context()that distinguishes between successful compaction, probe rejection, and no-op. - Probe
Outcome - Verdict returned by a
CompactionProbeCallbackafter evaluating a candidate summary.
Traits§
- Compaction
Persistence - Persistence completion hook invoked after the in-memory drain/reinsert is finalized.
- Compaction
Probe Callback - Probe-validation callback invoked by
ContextService::compact_contextafter the LLM produces a candidate summary. - Metrics
Callback - Metrics-counter sink for
ContextServiceincrements. - Security
Event Sink - Abstract sink for security events raised during context assembly.
- Status
Sink - Abstract status sink for emitting short progress strings to the channel.
- Tool
Output Archive - Pre-summary tool-output archiving hook (Memex #2432).
- Trust
Gate - Abstract gate for applying a skill trust level to the tool executor.
Type Aliases§
- Qdrant
Persist Future - Boxed
'staticfuture for the off-thread Qdrant session-summary write.