Skip to content

builder

diapason.prompt.builder

PromptSection dataclass

Inspectable prompt section emitted by SystemPromptBuilder.

SystemPromptBuilder

Assembles system prompts with frozen prefix for cache stability.

persona_sections()

Just the SOUL / MEMORY / USER persona, joined.

For agents that assemble their own system prompt (monitor_operative, operative) and want to append persona without letting the builder replace their specialized instructions (#376). Returns "" when no persona files are present.

sections()

Return prompt sections with lightweight cache/debug metadata.