Was ist ein Ausgabeschema?
Was ist das?
Ein Ausgabeschema ist ein JSON Schema, das die Form der erwarteten Antwort genau festlegt: welche Felder, welcher Typ, welche Pflicht sind. Aktuelle Modelle halten sich daran.
Wann verwenden
- Extract data from text (invoice, CV, email) in a reliable format.
- Plug a model's answer straight into a program.
Felder der Seite
| JSON Schema | The schema, of type object. |
|---|---|
| Instructions | What the model should do with the text. |
| Example | A valid output. |
So nutzt du es
The Python example passes the schema to the Anthropic API; the OpenAI format is provided too.