Function calling lets the model return structured arguments so your app can call a real tool/API safely.
sequenceDiagram
participant U as User
participant A as Agent
participant API as Weather API
U->>A: Weather in Delhi?
A->>API: get_weather(city="Delhi")
API-->>A: 38C, clear
A-->>U: It is 38C and clear in Delhi.