Skip to main content

Module context

Module context 

Source
Expand description

InvestigationContext — the runtime object that flows through every super::Skill in an agent step.

Skills mutate the context by appending Evidence and adjusting confidence; they do not own it. The owning super::Agent threads a single context through its skill chain for one investigation.

Structs§

ContextItem
One ranked piece of context that may be packed into a bounded model window.
ContextPack
Selected and omitted context for one bounded model window.
ContextPackConfig
Configuration for packing context items into a bounded model window.
Evidence
A single piece of evidence accumulated during an investigation.
InvestigationContext
Runtime state for one investigation. Cheap to construct; passed by &mut reference through the skill chain.
OmittedContextItem
Context item plus the reason it was omitted.
Signal
A named, lightweight signal lifted from a sketch, baseline check, or upstream skill. Skills key their applies predicate on signal names.

Enums§

ContextOmissionReason
Reason a context item was not selected for a ContextPack.
ContextSourceKind
Provider-neutral category for a piece of context that may enter a model window.
NextAction
Hint a skill may emit to drive subsequent skill selection. The agent loop is free to honour or ignore these — they are advisory.