Agents
Writing
Courses
Free lessons
Glossary terms
- AgentAn agent is a program that lets a model decide its own next steps: it calls tools, reads the results and repeats until it judges the task done or a limit stops it. Autonomy is a spectrum, and the smallest design that works, often a fixed workflow with one model call, is usually the right starting point.
- Agent loopThe agent loop is the cycle at the heart of every agent: send the conversation to the model, and if it asks for tools, run them, append the results and send again. It ends when the model answers in plain text or a limit is hit. The message list is the whole state of the run.
- Human in the loopHuman in the loop means a person reviews or approves the system's action at defined points before it takes effect. It is the main control for risky or irreversible actions. It only works when the review shows exactly what will happen and the person has the time and context to say no.
- IdempotencyAn operation is idempotent when doing it several times has the same effect as doing it once. This matters for agents because retries are common: a timeout may hide a call that actually succeeded. An idempotency key lets the receiving system recognise a repeat and ignore it.
- MCP (Model Context Protocol)The Model Context Protocol is an open protocol for connecting AI applications to tools and data. A server exposes tools, resources and prompts. A client inside the application discovers them and calls them. It lets one integration work with many applications instead of one custom connector per pair.
- Tool callingTool calling, also called function calling, lets a model request that your code run a named function with structured arguments. The model never executes anything itself. It returns a request, your code validates and runs it, and the result goes back into the conversation for the next step.
More on Agents, by email
New writing on Agents goes out in the newsletter, with a note on why it is worth your time.