Before you begin
Define the required fields. A schema constrains shape, not truth; keep human review for decisions and external actions.Steps
Schema envelope
Use the response-schema envelope below when the editor requests the full JSON Schema object. The inner schema is the contract for the returned value.- Choose list, object, or value and define each field’s name, type, and meaning.
- In the Agent’s Advanced > Structured Response Format control, choose the schema when the selected model supports it. The control is hidden for unsupported models; if it is absent, describe the format in instructions and validate in your app.
- Define the unknown convention, add normal and edge examples, and test complete, missing, and multiple-record inputs.
- Save only after checking types and business meaning.
{"status":"review","amount":1250.5,"reason":"The source shows an unpaid balance."}. A missing amount is null; a missing reason is invalid because it is required.