Loading learning content…
Loading learning content…
Understand when to use a simple tool, a single agent, or a multi-agent system.
Read through the lesson, mark it complete when the concept is clear, then move to the next lesson in the sequence or jump back to the module map.
Prompt — a single LLM call. Fast, cheap, stateless. Right for: classification, extraction, generation, summarization.
Tool-augmented prompt — an LLM call that can invoke external functions. Right for: tasks requiring real-time data, computation, or external API calls.
Agent — a persistent, goal-directed system with memory, planning, and multiple tool calls. Right for: multi-step tasks, tasks requiring adaptation, long-running work.
Choosing an agent when a prompt suffices: unnecessary complexity, higher latency, higher cost, harder debugging.
Choosing a prompt when an agent is needed: brittle single-shot solutions that break on edge cases, require constant human intervention.
Ask these questions:
The smallest useful agent has: a system prompt (role + behavior), one or two tools (file read, web search), and a loop (observe → reason → act → repeat).
Start minimal. Add capabilities only when the minimal version fails.
The most common agent mistake is building a complex multi-agent system before proving a single agent can solve the core problem. Build the simplest thing that could work, then scale up based on real failure modes.