Technology
JSON mode
JSON mode is a parameter that forces an LLM to return valid JSON matching a specified schema. Eliminates the 'paste JSON output' parsing fragility and unlocks structured outputs at scale. Supported by Claude, GPT-4, and most production LLMs.
More detail
Without JSON mode: LLMs occasionally return malformed JSON, miss commas, add explanatory prose. With JSON mode + a Zod / Pydantic schema: outputs are guaranteed structurally valid. Aiprosol's agents all use JSON mode for their `items[]`, `kpis[]`, `alerts[]`, `proposed_tasks[]` outputs.
