Lesson 02.01 · Phase 02 · Tool Use & Function Calling

Text in, text out: the limit

A model can only produce text from what it learned and what you send it. It can't look up today's date, compute a hash exactly, read your database, or do anything. Tools are how it gets past each of those limits.

Learning objectives

  • Name the four things a model can't do from text alone: exact computation, fresh data, private data, and actions.
  • Run one tool round trip by hand: the model requests a tool, your code runs it, the model answers from the result.
  • Measure the difference tools make on questions of each kind.
  • Spot the worst failure without tools: a confident, made-up answer, including made-up actions.

Ask a model "Open a support ticket titled 'Broken teapot' and tell me its id." Without tools, llama3.2 replied:

Loading the full lesson…