symfonic.capabilities.memory.summary¶
summary ¶
Scope-bound STM summaries for JIT prompt composition.
The legacy working layer summarized evicted turns, then placed that text in a JIT-only prompt slot. Native composition keeps the same division: an adopter supplies the evicted-turn source, this service produces a summary for exactly one scope, and the capability materializes it before prompt compilation.
EvictedWorkingSource ¶
Bases: Protocol
Provides only the turns evicted from a scope's working window.
STMSummaryPort ¶
Bases: Protocol
Produces an invocation-local summary without retaining session state.
STMSummaryRequest
dataclass
¶
The invocation-local scope for one summary materialization.
STMSummaryResult
dataclass
¶
A summary bound to the scope that supplied its evicted turns.
WorkingMemorySummaryService ¶
WorkingMemorySummaryService(source: EvictedWorkingSource, *, mode: STMSummaryMode = 'extractive', max_chars: int = 1000, model_provider: Any | None = None, model_config: Any | None = None)
Summarize an explicit evicted-turn source for one requested scope.
Source code in src/symfonic/capabilities/memory/summary.py
validate_summary ¶
Refuse a summary collaborator that would fail inside a live turn.