Function calling in a production application
A sales assistant can look up an account, calculate a quote, and create a draft order. The user's request should call lookup_account first, then calculate_quote. create_order is unavailable until a human confirms the exact draft.
The model proposes tool calls; the application validates schemas, authorization, and state before execution. Tool errors are returned as structured results, and identical invalid calls are not retried.
