Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.
Start 7-day trial →
⚡
← Courses
›
AI Engineering with Python
›
Module 1 · LLM API Fundamentals
›
Tool use — letting Claude call your functions
quiz
7 / 105
🇺🇸
EN
▼
↗
Share
⋯
More
+100 XP
📋
Task
📖
Theory
🤖
AI Help
Task
📝 **Question:** What happens when Claude decides to use a tool you've defined? 💡 Anthropic never executes your Python — you do.
🎯 Quiz
Question
📝 **Question:** What happens when Claude decides to use a tool you've defined? 💡 Anthropic never executes your Python — you do.
A
Anthropic runs your Python function on their servers using the source you uploaded with the schema
B
The API returns a plain-text instruction like 'call get_weather(city=...)' — you parse it with a regex
C
The API returns a structured `tool_use` block; YOU run the function and send the result back
D
Claude SSHes into the IP listed in your tool schema and invokes the function there directly
Submit answer
💬 Discussion
Be the first to ask a question or share a tip.
Sign in
to join the discussion. Reading is free.
Loading discussion…