builder
builder
¶
Classes¶
PromptSection
dataclass
¶
Inspectable prompt section emitted by SystemPromptBuilder.
SystemPromptBuilder
¶
SystemPromptBuilder(agent_template: str, memory_files_config: Optional[MemoryFilesConfig] = None, system_prompt_config: Optional[SystemPromptConfig] = None, skill_index: Optional[List[Tuple[str, str]]] = None, session_context: Optional[str] = None, previous_state: Optional[str] = None, skill_catalog_xml: Optional[str] = None, skill_few_shot: Optional[List[str]] = None, skill_few_shot_examples: Optional[List[str]] = None)
Assembles system prompts with frozen prefix for cache stability.
Source code in src/openjarvis/prompt/builder.py
Functions¶
sections
¶
sections() -> list[PromptSection]
Return prompt sections with lightweight cache/debug metadata.
Source code in src/openjarvis/prompt/builder.py
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.