Schema

Domain: Tools & Function Calling

🎯 Motivation

A formal description of what parameters a function accepts - their names, types, and whether they are required. This structure lets the model fill in arguments correctly.

πŸ“‹ Concrete Example

Schema for get_weather: {city: {type: string, description: β€˜City name’, required: True}, unit: {type: string, enum: [C,F], default: C}}.

πŸ”— Analogy

A form template - Name (required, text), Age (required, number), Email (optional, text). The schema tells the model what fields to fill and what type each value should be.