Structured output and function calling
Most production applications need structured output — JSON, function calls, or database records — not free text. Modern models support function calling (also called tool use): the prompt includes JSON schemas for available functions, and the model learns to emit properly formatted call objects.