Expand description
Turn-windowed extraction — OOB LLM structured data extraction between turns.
A TurnExtractor runs after each turn completes, taking a window of recent
transcript turns and producing a structured JSON value via an out-of-band
LLM call.
Structs§
- Field
Promotion - Rule for promoting one raw extraction field into authoritative state.
- LlmExtractor
- LLM-backed turn extractor that sends transcript windows to an OOB LLM with a structured extraction prompt.
- OnComplete
- A downstream agent fired when an extractor’s results land in state.
Enums§
- Extraction
Trigger - Controls WHEN an extractor runs.
- Merge
Policy - How an extracted field should be merged into authoritative session state.
- Promotion
Event - A state mutation or promotion decision produced by the shared extraction reducer.
Constants§
- FALLBACK_
THINKING_ BUDGET - The budget sent when a model rejects a thinking budget of 0, such as
gemini-3.5-flash-lite(“Request contains an invalid argument”). That model accepts budgets from 1, and below about 1024 it does not think at all, so this keeps thinking off at the smallest budget it accepts.
Traits§
- Turn
Extractor - Trait for between-turn extraction from transcript windows.
Functions§
- promote_
fields - Apply the same null, merge and acceptance rules for Live and owned task extraction.
Type Aliases§
- Promotion
Predicate - Predicate used to decide whether an extracted field may be promoted.