Skip to main content

dejadb_context/
lib.rs

1//! dejadb-context โ€” LLM-ready context assembly.
2//!
3//! Context module: takes recall results (`SearchHit`s)
4//! and renders budget-aware, provider-optimal context strings โ€” SML for
5//! Claude, Markdown for GPT-class, TOON/JSON for machine consumers โ€” with
6//! progressive disclosure (Full/Summary/Omit) and grain-type sections.
7//! Docs frame this as infrastructure for context engineering (ยง1 stance).
8
9pub mod assembly;
10pub mod budget;
11pub mod policy;
12pub mod presets;
13pub mod render;
14
15pub use assembly::{ContextAssembler, FormattedContext, RenderingHints};
16pub use budget::Allocation;
17pub use policy::{
18    FormatPolicy, GrainTypeOverride, MetadataLevel, Ordering, OutputFormat, SectionConfig,
19};