Skip to Content

7. Agents

Build a multi-step loop: goal → step → optional tool or retrieval → observation → repeat. Enforce a step cap.

Failure Modes

This is where most systems break. Know the failure modes before you hit them:

!!! info “Key insight” Most reliability issues in agents are control flow, not model capability.

Beyond Single Agents

Agent SDKs

OpenAI Agents SDK, Claude Agent SDK, Vercel AI SDK. These handle the loop, tool dispatch, and streaming for you — evaluate whether the abstraction helps or hides.

Resources

Anthropic agent overview · LLM Powered Autonomous Agents · ReAct paper