Expand description
The out-of-band retrieval-plan extractor seam.
Plan extraction is a small structured-output model call that runs after the final transcript, while the model is already speaking. It never sits on the response path, so its failure mode is “slightly worse retrieval”, not “slower conversation”.
Structs§
- Bounded
Plan Extractor - Runs an extractor under a deadline and falls back to the deterministic plan.
- Deterministic
Plan Extractor - The rule-based planner, exposed as an extractor.
- Retrieval
Extraction Context - What the extractor is given.
Constants§
- RETRIEVAL_
PLAN_ INSTRUCTION - The system instruction for the plan extractor.
Traits§
- Retrieval
Plan Extractor - Produces a retrieval plan from conversation context.
Functions§
- context_
for - Build an extraction context from a transcript and a rule-based plan.
- retrieval_
plan_ schema - The JSON Schema a structured-output model call should be constrained to.