Primitive / Schema
Extract one typed object
Provide source data and a strict object schema. Receive validated structured output with confidence and out-of-distribution signals.POST
/api/v1/schemaRequest contract
JSONjson
{
"prompt": "Extract the support category and invoice ID.",
"input": {"text": "Charged twice for invoice 88"},
"output_schema": {
"type": "object",
"properties": {
"category": {"type": "string", "enum": ["billing", "account", "technical"]},
"invoice_id": {"type": ["string", "null"]}
},
"required": ["category", "invoice_id"],
"additionalProperties": false
}
}Validate at the boundary
Parse output as data and validate it again with the same schema before storage or side effects. Model absent values explicitly instead of asking the extractor to invent them.