Part 9 · Agents vs pipelines · tools · MCP · frameworks · memory · control · multi-agent
Agents
Systems where the model decides the next step: when that's worth it, how the loop works, the protocols and runtimes around it, and how to keep it safe and bounded.
L4 · Applied AI engineer
An agent is a loop in which a model chooses actions (call a tool, look something up, ask a person, finish) based on what it has seen so far. Agents are powerful for open-ended tasks and expensive, slow and risky when used where a fixed pipeline would do.
This part teaches agents as an engineering problem: explicit state, tools with narrow permissions, budgets enforced outside the model, human approval for side effects, and traces for everything.
Say: "Agents are for workflows where the next step depends on the last result. If the steps are known, it's a pipeline."
Lessons in this part
- 9.1Agents versus pipelinesThe spectrum from a single call to a fully autonomous agent, and how to choose the least autonomous design that solves the problem.L4 · Applied AI engineer5 min
- 9.2Tool calling and the agent loopHow a model requests tool calls, how your code executes them safely, and how to write the loop yourself before reaching for a framework.L4 · Applied AI engineer5 min
- 9.3MCP and agent protocolsThe Model Context Protocol for exposing tools and data to any compatible client, plus agent-to-agent and agent-to-UI protocols, and their security implications.L4 · Applied AI engineer5 min
- 9.4Agent frameworks and runtimesLangChain, LangGraph, LlamaIndex, CrewAI, AutoGen and cloud agent SDKs in one breath each, and managed runtimes such as Amazon Bedrock AgentCore.L4 · Applied AI engineer5 min
- 9.5Memory, state and durable workflowsConversation memory, long-term user memory, explicit agent state, checkpoints, and durable execution for long-running or multi-step AI processes.L4 · Applied AI engineer5 min
- 9.6Controlling agents: budgets, approvals and human-in-the-loopEnforcing limits outside the model, approval gates for side effects, safe drafting patterns, and testing that controls hold.L4 · Applied AI engineer5 min
- 9.7Multi-agent systems and AI coding agentsWhen several agents beat one, orchestrator-worker patterns, and how to use AI coding agents professionally with gates that make the output yours.L4 · Applied AI engineer5 min