How to prompt models for tool use, function calling, and simple agents

Study Toolroute, writing prompts that decide when to call tools and how to use results with tools, function calling, planners, guardrails.

  • Difficulty Intermediate
  • Parts 10
  • Stack tools, function calling, planners, guardrails

What you are learning

Toolroute is writing prompts that decide when to call tools and how to use results. The teaching focus is Tools and agents (tools, function calling, planners, guardrails).

Work in order. Early parts set vocabulary and environment; later parts assume the earlier checkpoints.

How to use these lessons

Read the goal, open the matching GitHub folder, complete the lab or exercises, then return for the explanation. If a command fails, check you are in the numbered folder first.

Open the Toolroute GitHub repo โ†’

Parts in order

Each chapter below is one checkpoint in this track.