CompactionPrompts class final
The compaction prompts used by both engines, bundled so CLI prompt
overrides (the prompts: config section, see
lib/src/prompts/prompt_overrides.dart) can replace them without
changing the pipeline's shape. The defaults are the built-in prompts:
defaultCompactionPrompts is byte-identical to the historical
constants.
Constructors
- CompactionPrompts({String system = summarizationSystemPrompt, String summary = summarizationPrompt, String summaryUpdate = updateSummarizationPrompt, String turnPrefix = turnPrefixSummarizationPrompt, String hideJudgeSystem = hideJudgeSystemPrompt, String structuredCheckpoint = structuredCheckpointPrompt, String pinnedOperative = pinnedOperativePrompt})
-
Creates a prompt bundle; each field defaults to the built-in prompt.
const
- CompactionPrompts.fromOverrides(PromptOverrides? overrides)
-
Resolves the bundle against CLI prompt
overrides(names mirror theprompts/compaction/tree ids). Null or empty overrides yield defaultCompactionPrompts.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideJudgeSystem → String
-
System prompt of the structured-engine hide judge (issue #148).
final
- pinnedOperative → String
-
gh-1409 verbatim-preserve duty (AC3): appended to every
summarization call whose input carries the pinned-operative block.
The prompt is belt — the fold carrier (the pin registry) is the
boundary; a summary that drops a pinned line is repaired from the
registry at request assembly, never trusted from summary text.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- structuredCheckpoint → String
-
Instruction tail of the structured-engine checkpoint call (#148).
final
- summary → String
-
Instructions for the first summary.
final
- summaryUpdate → String
-
Instructions for updating a previous summary.
final
- system → String
-
System prompt of the summarization LLM call.
final
- turnPrefix → String
-
Instructions for a split-turn prefix summary.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited