Skip to content

prompt_registry

diapason.learning.intelligence.orchestrator.prompt_registry

Prompt registry for orchestrator structured mode.

Adapted from IPW's prompt_registry.py. Provides the canonical system prompt template and tool descriptions used by the structured-mode OrchestratorAgent and by the SFT/GRPO training pipelines.

build_system_prompt(tool_names=None, *, tools=None)

Build the complete system prompt for the given tools.

Parameters:

Name Type Description Default
tool_names Optional[List[str]]

Tool names to include. If None, uses all tools from :data:TOOL_DESCRIPTIONS. This path is kept for backward compatibility with training pipelines.

None
tools Optional[List['BaseTool']]

Optional list of BaseTool instances. When provided, rich descriptions are auto-generated from ToolSpec, replacing the hardcoded :data:TOOL_DESCRIPTIONS lookup. Unknown / MCP tools get full descriptions instead of "Tool: {name}".

None

Returns:

Type Description
str

Complete system prompt string.