Agent Structured Output

Covers how to get reliable machine-readable output from AI agents — separate the thinking turn from the formatting turn, keep schemas flat and bounded, offload substantive content to files and return a small manifest, inject orchestrator-owned fields after parsing, and validate the manifest and the referenced files at the boundary. Includes schema design do/don't lists, prompting rules, the failure model, layered extraction, and one bounded repair turn. Use when an agent's JSON response drives workflow state, when designing a response schema or JSON Schema/Zod contract for an agent, when structured output keeps failing validation, or when deciding what belongs in JSON versus in a generated file.

amhuppert Updated

File contents

amhuppert/my-ai-resources/tree/main/plugins/agentic-engineering-principles/skills/agent-structured-output commit 706a0c924b

Frequently asked questions

npx skillmds@latest add amhuppert/agent-structured-output