Back to discover
VideosBuild with AI

Building agents: workflows and tool calls

Anthropic explains when agent autonomy helps and why clear tools matter.

Jump to the practice exercise
Watch on YouTube

Choose the architecture

The companion essay distinguishes predetermined workflows from agents that select their own steps. It presents prompt chaining, routing and evaluation loops, and recommends adding complexity only when simpler approaches fall short. The February 2025 discussion belongs to that earlier tooling period.

A first implementation exercise

For a follow-up exercise, use the separate tool-use guide. With API access and basic programming knowledge, define a harmless lookup with a clear input schema. Inspect the returned tool request, run the lookup in your application, and return its result. Compare the arguments with the original request before adding another operation. This exercise focuses on the boundary between a model selecting an action and your code executing it.

Try it: a CurioFuse exercise

An original editorial exercise with a checkable outcome.

CurioFuse boundary exercise: propose, then execute

Invent a read-only stock lookup with two fields: product code and warehouse. Write a request naming product P7 but no warehouse. On paper, separate the model's proposed arguments from your application's lookup and final answer.

Your check should catch the missing warehouse before a made-up value reaches the lookup. For a second request, supply warehouse North and a fictional result of five units; the answer should preserve five and its location. Decide whether this fixed sequence needs agent autonomy or a straightforward workflow.