Skip to main content

Crate zeph_context

Crate zeph_context 

Source
Expand description

Context budget, lifecycle management, compaction strategy, and context assembler for Zeph.

This crate contains the stateless and data-only parts of context management extracted from zeph-core. It has no dependency on zeph-core — callers in zeph-core implement the input::IndexAccess trait for their own types and populate input::ContextMemoryView before each assembly pass.

§Modules

Modules§

assembler
Stateless context assembler.
budget
Token budget calculation for context assembly.
compression_feedback
Pure detection and classification helpers for ACON compression guidelines (#1647).
error
Error type for context assembly operations.
input
Input types for context assembly.
manager
Context lifecycle state machine for the Zeph agent.
microcompact
Pure helpers for time-based microcompact (#2699).
slot
Context slot types, compaction outcome, and message-chunking helpers.
summarization
Pure prompt-building, compaction helpers, and async LLM summarization for context.