What is the difference between function calling and structured output?
Prompt Engineering Patterns: Structured Outputs, JSON Mode, Function Calling, Schema Validation
Audio flashcard · 0:20Nortren·
What is the difference between function calling and structured output?
0:20
Structured output produces a response matching a single schema you define. Function calling produces a choice among multiple tools, each with its own schema. Function calling is for picking and invoking actions; structured output is for producing one specific response shape. Many APIs implement structured output as a special case of single-tool function calling under the hood.
platform.openai.com