AI Dictionary › Prompting

Structured Output

Output Strutturato

Definition

Structured output is asking the model to return its answer in a machine-readable, predictable format — typically JSON, but also YAML, XML or tables — with defined fields and types, so your software can consume it unambiguously. Example prompt: "Extract data from this CV and return it ONLY as JSON matching this shape: {\\"name\\":string, \\"years_experience\\":number, \\"skills\\":string[]}. No text before or after." The model produces an object ready to validate and store, instead of prose you must parse by hand.

Use it whenever the output feeds a program, not a human: data extraction, classification, automated pipelines, integrations. Combine it with format anchoring and examples to boost schema adherence, and always validate what you receive.

Definizione (italiano)

L'output strutturato è la richiesta al modello di restituire la risposta in un formato macchina-leggibile e prevedibile — tipicamente JSON, ma anche YAML, XML o tabelle — con campi e tipi definiti, così che il tuo software possa consumarla senza ambiguità. Esempio di prompt: "Estrai i dati da questo curriculum e restituiscili SOLO come JSON con questa struttura: {\\"nome\\":string, \\"anni_esperienza\\":number, \\"competenze\\":string[]}. Nessun testo prima o dopo". Il modello produce un oggetto pronto per essere validato e salvato in database, invece di prosa che dovresti interpretare a mano.

Usalo ogni volta che l'output alimenta un programma, non un umano: estrazione dati, classificazione, pipeline automatiche, integrazioni. Combinalo con format anchoring ed esempi per aumentare l'aderenza allo schema, e valida sempre l'output ricevuto.

Related terms

More in Prompting

From our network

AGORÀ Intelligence — Enterprise AI Governance Platform

Govern AI at scale: policies, adoption and measurable results on your data. Built for boards and C-suite.

Visit agora-intelligence.com →

From the Agora Intelligence blog

More on agora-intelligence.com →

📱 Download the Android app (beta) iOS coming soon

Say what you mean. Get what you need.

Grace Certified — the AI coach that trains and certifies your prompt engineering — by Agora Intelligence.