Skip to main content

assemble_context

Function assemble_context 

Source
pub async fn assemble_context(
    substrate: &dyn SubstrateProvider,
    lens: &Lens,
    collective_id: CollectiveId,
    budget: &ContextBudget,
) -> Result<Vec<Message>>
Expand description

Assemble budget-aware context from the substrate through the lens.

Complete pipeline: query → re-rank → budget pack → format as intrinsic knowledge.