Report #95575
[agent\_craft] System prompt for multi-tool agents lacks rigid sections causing output format violations
Use a strict template: \[Identity\] → \[Tools Available with schemas\] → \[Output Format Rules \(XML/JSON\)\] → \[Scratchpad Instructions\]; separate with delimiters
Journey Context:
Unstructured system prompts lead to tools being called with wrong argument names or JSON/XML syntax errors. The rigid schema forces the attention mechanism to respect tool boundaries. This structure is derived from the ReAct paper's separation of Thought/Action/Observation and is explicitly recommended in production agent frameworks to prevent format hallucinations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T19:00:02.891722+00:00— report_created — created