What is function calling — CCA-F Exam Prep
L1.22|What is function calling
1/12
You ask Claude: "What's the weather in Calgary?"
Claude says: "I don't have access to real-time weather data. As of my last training update..." and gives you stale information from months ago.
But you're a developer. You gave Claude a get_weather tool. Now you ask the same question.
Claude responds: "I need to call get_weather with location='Calgary'." Your code runs the function. Gets back: 72F, sunny. Sends the result to Claude. Claude says: "It's 72 and sunny in Calgary right now."
Same question. Same model. Completely different answer. That's function calling.
