Skip to main content

Module extractor

Module extractor 

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

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

ExtractionTrigger
Controls WHEN an extractor runs.
MergePolicy
How an extracted field should be merged into authoritative session state.
PromotionEvent
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§

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

PromotionPredicate
Predicate used to decide whether an extracted field may be promoted.