IT
Accedi Pubblica

Cos'è uno schema di output?

Che cos'è?

Uno schema di output è un JSON Schema che descrive esattamente la forma della risposta: quali campi, di che tipo e quali sono obbligatori. I modelli recenti sanno rispettarlo.

Quando usarla

  • Extract data from text (invoice, CV, email) in a reliable format.
  • Plug a model's answer straight into a program.

Campi della pagina

JSON SchemaThe schema, of type object.
InstructionsWhat the model should do with the text.
ExampleA valid output.

Come usarla

The Python example passes the schema to the Anthropic API; the OpenAI format is provided too.

Vedi Schemi di output →