Make an agent return JSON with the fields and types your code expects
Add a parser to an agent and it answers with JSON that follows a schema you define, instead of free text. Use a parser whenever code reads the answer: a function in a workflow, a database insert, your application.
parser: name: invoice-fields # any name fields: - name: vendor type: str description: Name of the company that issued the invoice - name: total_amount type: float description: The invoice total, without currency symbols - name: paid type: bool description: True if the invoice is marked as paid
The model sees every field’s description, so write descriptions as instructions: what the field holds, its format, and what to return when the value is not there.
- name: priority type: enum description: How urgent the request is values: [low, normal, high]
Use literal when each value needs explaining. The descriptions are added to the field’s instructions, which noticeably improves accuracy for judgement calls:
- name: verdict type: literal description: Whether the two photos show the same room values: - value: SAME description: Several distinctive fixed features match and none conflict - value: DIFFERENT description: Fixed features conflict (layout, doors, windows, flooring) - value: UNSURE description: Too little overlap, too dark or too blurred to say default_value_prompt: If you cannot decide, answer UNSURE.
literal values must be {value, description} objects. A plain list such as values: [SAME, DIFFERENT] is rejected with a validation error. Use enum for plain values.
- name: line_items type: array description: Each line of the invoice, in order items: name: line_item type: object description: One line fields: - name: description type: str description: What was charged - name: amount type: float description: Amount for this line
An array describes one element in items. An element can be a primitive (type: str) or an object with its own fields, and objects can nest further.
Every field is requested. Tell the model what to return when a value is absent, in the field description or in the agent’s instructions: “Use null if the invoice has no due date”, or “Use an empty list if there are no line items”. Otherwise models tend to guess.
Return evidence, then decide in code. Ask for matching_features and differing_features, not just is_same: bool. A function can then apply your rule, and the reasons are on record.
Use enum or literal for anything code branches on. A field_match router or a function can switch on a closed set of values; free text breaks that.
Ask for a confidence only if you will use it, and say what the scale means (for example “0.0–1.0, how sure you are of the verdict”).
Include an assessed flag and a reason for agents that may not be able to do their job (a missing or unreadable file). Downstream code can then tell “said no” apart from “could not look”.
Keep names stable. Code depends on field names; change them as you would change an API.
Agent run through the API: result is the parsed object (unless you set "output_json_enabled": false).
Inside a workflow: the JSON becomes the agent node’s output. Downstream function nodes receive its fields directly; see Passing data between nodes.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Wavefront AI | Rootflo","colors":{"primary":"#3B82F6","light":"#60A5FA","dark":"#1E40AF"},"logo":{"light":"https://mintcdn.com/rootfloai/AiHxIkh9KtGYiz8E/logo/light.png?fit=max\u0026auto=format\u0026n=AiHxIkh9KtGYiz8E\u0026q=85\u0026s=b493e8fe23f59899d246e2ca32396012","dark":"https://mintcdn.com/rootfloai/AiHxIkh9KtGYiz8E/logo/dark.png?fit=max\u0026auto=format\u0026n=AiHxIkh9KtGYiz8E\u0026q=85\u0026s=cc952b50a8b76554187f5472425ec816"},"favicon":"https://mintcdn.com/rootfloai/ESOMPNB1NNLp7sKF/favicon.png?fit=max\u0026auto=format\u0026n=ESOMPNB1NNLp7sKF\u0026q=85\u0026s=bcf18853f4828199e6cb71af384a8748","navbar":{"links":[{"href":"https://rootflo.ai","label":"Website"}],"primary":{"type":"button","label":"Contact us","href":"mailto:sales@rootflo.ai?subject=Partnership%20Inquiry\u0026body=Hi%2C%0A%0AI%20would%20like%20to%20know%20more%20about%20your%20Wavefront%20Enterprise%20AI%20Platform.%0A%0AThanks%2C%0A%0A"}},"footer":{"socials":{"x":"https://x.com/rootflo_ai","github":"https://github.com/rootflo/wavefront","linkedin":"https://linkedin.com/company/rootflo","discord":"https://discord.gg/BPXsNwfuRU"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/rootflo/flo-ai"},{"anchor":"Discord","icon":"comments","href":"https://discord.gg/BPXsNwfuRU"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"rootfloai","hasAudioNarration":false,"actualSubdomain":"rootfloai","customDomains":["wavefront.rootflo.ai"],"gitSource":{"type":"github","owner":"rootflo","repo":"wavefront","deployBranch":"develop","contentDirectory":"documentation","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad873e433c6f36d82f3b613","collectionId":"c73d5747-f7b7-442a-8b52-1b1ffc5e612b","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad873e433c6f36d82f3b613"},"entitlements":{},"buildId":"6ad873e433c6f36d82f3b613","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"Wavefront","count":38},{"language":"default","tag":"FloAI","count":13},{"language":"default","tag":"Getting started","count":8},{"language":"default","tag":"Workflows","count":7},{"language":"default","tag":"Core Features","count":5},{"language":"default","tag":"Models and agents","count":5},{"language":"default","tag":"Data, files and configuration","count":5},{"language":"default","tag":"Run and integrate","count":5},{"language":"default","tag":"Advanced","count":4},{"language":"default","tag":"Guides","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"wavefront/structured-output","slug":"/wavefront/structured-output","pageMetadata":{"title":"Structured output","description":"Make an agent return JSON with the fields and types your code expects","icon":"brackets-curly","href":"/wavefront/structured-output"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Make an agent return JSON with the fields and types your code expects\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Add a `,_jsx(_components.code,{children:`parser`}),` to an agent and it answers with JSON that follows a schema you define, instead of free text. Use a parser whenever code reads the answer: a function in a workflow, a database insert, your application.`]}),`\n`,_jsx(Heading,{level:`2`,id:`a-parser`,children:`A parser`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`parser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`invoice-fields`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # any name`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` fields`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`vendor`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`str`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Name of the company that issued the invoice`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`total_amount`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`float`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`The invoice total, without currency symbols`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`paid`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`bool`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`True if the invoice is marked as paid`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The model sees every field’s `,_jsx(_components.code,{children:`description`}),`, so write descriptions as instructions: what the field holds, its format, and what to return when the value is not there.`]}),`\n`,_jsx(Heading,{level:`2`,id:`field-types`,children:`Field types`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`JSON value`}),_jsx(_components.th,{children:`Needs`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`str`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`int`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`float`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`bool`})}),_jsx(_components.td,{children:`true / false`}),_jsx(_components.td,{})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`enum`})}),_jsx(_components.td,{children:`one of a fixed set of values`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`values`}),`: a list of plain values`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`literal`})}),_jsx(_components.td,{children:`one of a fixed set of values, each explained to the model`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`values`}),`: a list of `,_jsx(_components.code,{children:`{value, description}`}),` objects`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`object`})}),_jsx(_components.td,{children:`a nested object`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`fields`}),`: its own list of fields`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`array`})}),_jsx(_components.td,{children:`a list`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`items`}),`: one field definition describing each element`]})]})]})]}),`\n`,_jsxs(Heading,{level:`3`,id:`choosing-from-a-fixed-set-enum-or-literal`,children:[`Choosing from a fixed set: `,_jsx(_components.code,{children:`enum`}),` or `,_jsx(_components.code,{children:`literal`})]}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`enum`})}),` when the values speak for themselves:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`- `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`priority`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`enum`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`How urgent the request is`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` values`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`low`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`normal`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`high`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`literal`})}),` when each value needs explaining. The descriptions are added to the field’s instructions, which noticeably improves accuracy for judgement calls:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`- `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`verdict`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`literal`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Whether the two photos show the same room`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` values`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`value`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`SAME`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Several distinctive fixed features match and none conflict`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`value`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`DIFFERENT`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Fixed features conflict (layout, doors, windows, flooring)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`value`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`UNSURE`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Too little overlap, too dark or too blurred to say`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` default_value_prompt`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`If you cannot decide, answer UNSURE.`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`literal`}),` values `,_jsx(_components.strong,{children:`must`}),` be `,_jsx(_components.code,{children:`{value, description}`}),` objects. A plain list such as `,_jsx(_components.code,{children:`values: [SAME, DIFFERENT]`}),` is rejected with a validation error. Use `,_jsx(_components.code,{children:`enum`}),` for plain values.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`objects-and-lists`,children:`Objects and lists`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`- `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`line_items`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`array`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Each line of the invoice, in order`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` items`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`line_item`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`object`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`One line`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` fields`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`description`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`str`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`What was charged`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`amount`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`float`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Amount for this line`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`An `,_jsx(_components.code,{children:`array`}),` describes one element in `,_jsx(_components.code,{children:`items`}),`. An element can be a primitive (`,_jsx(_components.code,{children:`type: str`}),`) or an `,_jsx(_components.code,{children:`object`}),` with its own `,_jsx(_components.code,{children:`fields`}),`, and objects can nest further.`]}),`\n`,_jsx(Heading,{level:`2`,id:`missing-values`,children:`Missing values`}),`\n`,_jsx(_components.p,{children:`Every field is requested. Tell the model what to return when a value is absent, in the field description or in the agent’s instructions: “Use null if the invoice has no due date”, or “Use an empty list if there are no line items”. Otherwise models tend to guess.`}),`\n`,_jsx(Heading,{level:`2`,id:`designing-a-schema-code-can-trust`,children:`Designing a schema code can trust`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Return evidence, then decide in code.`}),` Ask for `,_jsx(_components.code,{children:`matching_features`}),` and `,_jsx(_components.code,{children:`differing_features`}),`, not just `,_jsx(_components.code,{children:`is_same: bool`}),`. A `,_jsx(_components.a,{href:`/wavefront/functions`,children:`function`}),` can then apply your rule, and the reasons are on record.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Use `,_jsx(_components.code,{children:`enum`}),` or `,_jsx(_components.code,{children:`literal`}),` for anything code branches on.`]}),` A `,_jsxs(_components.a,{href:`/wavefront/routing-and-iteration`,children:[_jsx(_components.code,{children:`field_match`}),` router`]}),` or a function can switch on a closed set of values; free text breaks that.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Ask for a confidence only if you will use it,`}),` and say what the scale means (for example “0.0–1.0, how sure you are of the verdict”).`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Include an `,_jsx(_components.code,{children:`assessed`}),` flag and a reason`]}),` for agents that may not be able to do their job (a missing or unreadable file). Downstream code can then tell “said no” apart from “could not look”.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Keep names stable.`}),` Code depends on field names; change them as you would change an API.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-the-output-arrives`,children:`How the output arrives`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Agent run`}),` through the API: `,_jsx(_components.code,{children:`result`}),` is the parsed object (unless you set `,_jsx(_components.code,{children:`\"output_json_enabled\": false`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Inside a workflow:`}),` the JSON becomes the agent node’s output. Downstream function nodes receive its fields directly; see `,_jsx(_components.a,{href:`/wavefront/workflow-data-flow`,children:`Passing data between nodes`}),`.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Structured output","description":"Make an agent return JSON with the fields and types your code expects","icon":"brackets-curly","href":"/wavefront/structured-output"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"A parser","slug":"a-parser","depth":2,"children":[]},{"title":"Field types","slug":"field-types","depth":2,"children":[{"title":"Choosing from a fixed set: enum or literal","slug":"choosing-from-a-fixed-set-enum-or-literal","depth":3,"children":[]},{"title":"Objects and lists","slug":"objects-and-lists","depth":3,"children":[]}]},{"title":"Missing values","slug":"missing-values","depth":2,"children":[]},{"title":"Designing a schema code can trust","slug":"designing-a-schema-code-can-trust","depth":2,"children":[]},{"title":"How the output arrives","slug":"how-the-output-arrives","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"rootfloai","siteName":"Wavefront AI | Rootflo","title":"Structured output - Wavefront AI | Rootflo","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-21T08:12:26.714Z","originalFileLocation":"wavefront/structured-output.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Make an agent return JSON with the fields and types your code expects\">\u003cmeta data-mint-head name=\"application-name\" content=\"Wavefront AI | Rootflo\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Structured output - Wavefront AI | Rootflo\">\u003cmeta data-mint-head property=\"og:description\" content=\"Make an agent return JSON with the fields and types your code expects\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Wavefront AI | Rootflo\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://wavefront.rootflo.ai/wavefront/structured-output\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://rootfloai.mintlify.site/_mintlify/api/og/v2?division=Models+and+agents\u0026amp;title=Structured+output\u0026amp;description=Make+an+agent+return+JSON+with+the+fields+and+types+your+code+expects\u0026amp;theme=bcaf035d0ae7f9c56e224f26\u0026amp;signature=36ec0a5f4e8b0bdfd3f8152c778c4caecac50028e3e0fcbcf312815cb9aebebc\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Structured output - Wavefront AI | Rootflo\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Make an agent return JSON with the fields and types your code expects\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://rootfloai.mintlify.site/_mintlify/api/og/v2?division=Models+and+agents\u0026amp;title=Structured+output\u0026amp;description=Make+an+agent+return+JSON+with+the+fields+and+types+your+code+expects\u0026amp;theme=bcaf035d0ae7f9c56e224f26\u0026amp;signature=36ec0a5f4e8b0bdfd3f8152c778c4caecac50028e3e0fcbcf312815cb9aebebc\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/rootfloai/vhaXyiJ6Z3XlfH3z/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Wavefront AI | Rootflo\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3B82F6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://wavefront.rootflo.ai/wavefront/structured-output\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/wavefront/structured-output.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://wavefront.rootflo.ai/#organization\",\"name\":\"Wavefront AI | Rootflo\",\"url\":\"https://wavefront.rootflo.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/rootfloai/AiHxIkh9KtGYiz8E/logo/light.png?fit=max\u0026auto=format\u0026n=AiHxIkh9KtGYiz8E\u0026q=85\u0026s=b493e8fe23f59899d246e2ca32396012\"}},{\"@type\":\"WebSite\",\"@id\":\"https://wavefront.rootflo.ai#website\",\"name\":\"Wavefront AI | Rootflo\",\"url\":\"https://wavefront.rootflo.ai\",\"publisher\":{\"@id\":\"https://wavefront.rootflo.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://wavefront.rootflo.ai/wavefront/structured-output#webpage\",\"url\":\"https://wavefront.rootflo.ai/wavefront/structured-output\",\"name\":\"Structured output\",\"description\":\"Make an agent return JSON with the fields and types your code expects\",\"dateModified\":\"2026-10-21T08:12:26.714Z\",\"isPartOf\":{\"@id\":\"https://wavefront.rootflo.ai#website\"},\"breadcrumb\":{\"@id\":\"https://wavefront.rootflo.ai/wavefront/structured-output#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://wavefront.rootflo.ai/wavefront/structured-output#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Models and agents\",\"item\":\"https://wavefront.rootflo.ai/wavefront/llm-configs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Structured output\",\"item\":\"https://wavefront.rootflo.ai/wavefront/structured-output\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://wavefront.rootflo.ai/wavefront/structured-output#article\",\"headline\":\"Structured output\",\"name\":\"Structured output\",\"description\":\"Make an agent return JSON with the fields and types your code expects\",\"url\":\"https://wavefront.rootflo.ai/wavefront/structured-output\",\"mainEntityOfPage\":{\"@id\":\"https://wavefront.rootflo.ai/wavefront/structured-output#webpage\"},\"dateModified\":\"2026-10-21T08:12:26.714Z\",\"publisher\":{\"@id\":\"https://wavefront.rootflo.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://wavefront.rootflo.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Wavefront AI | Rootflo\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Wavefront AI | Rootflo","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/rootflo/flo-ai"},{"anchor":"Discord","icon":"comments","href":"https://discord.gg/BPXsNwfuRU"}]},"tabs":[{"tab":"Wavefront","groups":[{"group":"Getting started","pages":[{"title":"Project Overview","href":""},{"title":"How Wavefront fits together","icon":"sitemap","href":"/wavefront/overview"},{"title":"Concepts","icon":"book","href":"/wavefront/concepts"},{"title":"Tour of the Wavefront Console","icon":"map","href":"/wavefront/console-tour"},{"title":"Quickstart","icon":"rocket","href":"/wavefront/quickstart"}]},{"group":"Models and agents","pages":[{"title":"LLM Repository","icon":"brain","href":"/wavefront/llm-configs"},{"title":"Agents","description":"Create, test and run agents: one model with a role, instructions, optional tools and an output schema","icon":"robot","href":"/wavefront/agents"},{"title":"Structured output","icon":"brackets-curly","href":"/wavefront/structured-output"},{"title":"Tools","description":"Let an agent call queries, functions, APIs and more while it works","icon":"wrench","href":"/wavefront/tools"},{"title":"Images, documents and video","icon":"photo-film","href":"/wavefront/media"}]},{"group":"Workflows","pages":[{"title":"Workflows","icon":"diagram-project","href":"/wavefront/workflows"},{"title":"How a workflow runs","icon":"list-ol","href":"/wavefront/workflow-execution-model"},{"title":"Passing data between nodes","icon":"arrow-right-arrow-left","href":"/wavefront/workflow-data-flow"},{"title":"Sub-workflows","icon":"layer-group","href":"/wavefront/sub-workflows"},{"title":"Routing and iteration","icon":"code-branch","href":"/wavefront/routing-and-iteration"},{"title":"Function nodes","icon":"cubes","href":"/wavefront/function-nodes"},{"title":"Versions","icon":"code-compare","href":"/wavefront/versions"}]},{"group":"Functions","pages":[{"title":"Functions","icon":"function","href":"/wavefront/functions"}]},{"group":"Data, files and configuration","pages":[{"title":"Datasources","icon":"database","href":"/wavefront/datasources"},{"title":"Dynamic queries","icon":"magnifying-glass","href":"/wavefront/dynamic-queries"},{"title":"File storage","icon":"folder-open","href":"/wavefront/file-storage"},{"title":"Configurations","icon":"sliders","href":"/wavefront/configurations"},{"title":"Audit trail","icon":"clipboard-list","href":"/wavefront/audit-trail"}]},{"group":"Run and integrate","pages":[{"title":"Running workflows","icon":"play","href":"/wavefront/running-workflows"},{"title":"Integrating an application","icon":"plug","href":"/wavefront/integrating-an-app"},{"title":"Users and access","icon":"users","href":"/wavefront/users-and-access"},{"title":"Chatbots","icon":"comments","href":"/wavefront/chatbots"},{"title":"Deploying from git","icon":"code-branch","href":"/wavefront/deploy-as-code"}]},{"group":"Guides","pages":[{"title":"Guide: verify a document against submitted data","icon":"file-circle-check","href":"/guides/document-verification"},{"title":"Guide: configurable rules and scoring","icon":"scale-balanced","href":"/guides/rules-and-scoring"},{"title":"Guide: a chat assistant beside a record","icon":"message-bot","href":"/guides/record-chat-assistant"},{"title":"Guide: a review dashboard and work lists","icon":"chart-column","href":"/guides/review-dashboard"}]},{"group":"Patterns and troubleshooting","pages":[{"title":"Patterns and best practices","icon":"lightbulb","href":"/wavefront/patterns"},{"title":"Troubleshooting","icon":"bug","href":"/wavefront/troubleshooting"}]},{"group":"Operations","pages":[{"title":"Architecture","icon":"server","href":"/operations/architecture"},{"title":"Environment and configuration","icon":"gear","href":"/operations/environment"},{"title":"Running several apps","icon":"boxes-stacked","href":"/operations/multi-app"},{"title":"Upgrades","icon":"arrow-up-right-dots","href":"/operations/upgrades"}]}]},{"tab":"FloAI","pages":[{"title":"FloAI","href":"/flo-ai"}]}]},"basePath":"","title":"Structured output - Wavefront AI | Rootflo","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":[],"chunks":[]}