Home/
Part XV — Troubleshooting, Checklists, and Reference/48. Glossary and Quick Reference/48.2 Common schema patterns
48.2 Common schema patterns
Overview and links for this section of the guide.
On this page
Common Schema Patterns
// Classification response
{
"intent": "purchase",
"confidence": 0.95,
"entities": [{ "type": "product", "value": "laptop" }]
}
// Extraction response
{
"extracted": {
"name": "John Doe",
"email": "[email protected]",
"date": "2024-01-15"
},
"missing": ["phone"]
}
// Error response
{
"success": false,
"error": {
"code": "INVALID_INPUT",
"message": "Date must be in YYYY-MM-DD format",
"retryable": true
}
}
// Multi-result response
{
"results": [
{ "id": 1, "title": "...", "score": 0.95 },
{ "id": 2, "title": "...", "score": 0.87 }
],
"totalCount": 42,
"hasMore": true
}
// With reasoning
{
"answer": "42",
"reasoning": "The question asks for ...",
"confidence": 0.9,
"sources": ["doc1", "doc2"]
}