CodeQuest101AI Agents & Tool CallingChapter Studio
AI Agents & Tool Calling

7 chapters

Advanced RAG

Chapter 02 / 07

A tool call is a request, not an action.

Follow a structured request through argument validation, application execution, and a matched result.

The tool contract

A tool definition tells a model what an operation does and which inputs it accepts. The model can request a call, for example lookup_order with an order number. Application code must validate that request and run the function.

The result returns with an identifier linking it to the original call. A rejected input is an error result, not a successful lookup. The schemas in this lesson describe four fixed teaching tools; the application validates their actual inputs.