Agents
Function calling and tool use
Give LLMs the ability to invoke functions and use tools.
Function calling (tool calling) lets an LLM decide to invoke a function you've defined. This hub covers tool schemas, execution, the ReAct loop, MCP, and building production agents with reliable tool use.
Step 1 of 5
Define tools
You describe each function with a name, a plain-language description and a JSON schema for its arguments, and send that with the request.
The model proposes the call; your code decides whether and how to run it.
Start here
Begin with the fundamentals
The recommended first lesson for this topic.
Fundamentals
Tutorials
Architecture patterns
Challenges
Projects
Key concepts