response_format when your application needs machine-readable output.
Prism supports JSON mode and JSON Schema on POST /v1/chat/completions.
JSON mode
JSON mode guarantees valid JSON but does not enforce a specific shape.JSON Schema
Use strict JSON Schema when downstream code requires known fields:Validate in your application
Schema-constrained generation reduces invalid responses, but it does not replace application validation or authorization.Tool schemas and response schemas solve different problems. A tool schema
constrains a function call.
response_format constrains the assistant’s final
response.