[KongchangAI]
ConceptJSON mode / JSON mode flag / JSON输出模式

JSON Mode

An output constraint flag provided by LLM APIs that requires the model to produce valid JSON on every response. It represents a hard requirement on the model's structured output capability and is commonly used in conjunction with tool-calling scenarios.

Core Facts

Timeline (last 90 days)

Oct 17

Specifying an exact JSON output schema for the Agent (field names, types, enum values) ensures downstream systems parse without errors and forces the model to quantify uncertainty.

Unverified50%
Oct 14

The author adopts a three-layer approach to solve the problem of unreliable AI output: forcing JSON mode, cleanValue to clean placeholder values, and post-processing array filtering of invalid values.

Unverified50%
Oct 13

JSON mode and structured output only solve the problem of format validity; they do not guarantee semantic correctness and do not provide calibrated confidence, so they cannot support threshold policies.

Unverified50%

All Facts (4)

Source Articles