Packages

Secure BEAM sandbox runtime for LLM code mode and MCP aggregation. Run concurrent LLM/tool clients safely while agents orchestrate approved tools, call upstream MCP/OpenAPI servers, and transform data.

Current section

Files

Jump to
ptc_runner priv prompts json-error.md
Raw

priv/prompts/json-error.md

# Text Mode (JSON variant) Error Feedback
Error feedback for text mode JSON validation failures.
<!-- version: 2 -->
<!-- date: 2026-05-18 -->
<!-- prompt-guidelines: priv/prompts/README.md -->
<!-- audience: text-mode-json-error-feedback -->
<!-- budget: target<=1000 bytes, hard<=1500 bytes -->
<!-- changes: Wrap in XML tag -->
<!-- variables: error_message, invalid_response -->
<!-- used-by: PtcRunner.SubAgent.Loop.TextMode -->
<!-- profiles: text output mode, JSON variant retry -->
<!-- shown-in: provider user feedback message after JSON parse/shape failure -->
<!-- composed-with: json-system.md and json-user.md from the original attempt -->
<!-- PTC_PROMPT_START -->
<error_feedback>
Response was not valid JSON or had the wrong shape.
Error: {{error_message}}
Response:
{{invalid_response}}
Return valid JSON matching:
{{expected_format}}
</error_feedback>
<!-- PTC_PROMPT_END -->