Module extractor

Module extractor 

Source
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§

BoundedPlanExtractor
Runs an extractor under a deadline and falls back to the deterministic plan.
DeterministicPlanExtractor
The rule-based planner, exposed as an extractor.
RetrievalExtractionContext
What the extractor is given.

Constants§

RETRIEVAL_PLAN_INSTRUCTION
The system instruction for the plan extractor.

Traits§

RetrievalPlanExtractor
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.