Skill-based roadmap
AI Agents
Build a tool-using agent with bounded execution, explicit permissions and a repeatable evaluation.
Open a step for a lesson, practice and completion checks. Lessons are free to read; API and cloud exercises may incur provider charges. Use sample data and mock responses while learning.
Step 1Decide where an agent helps
First establish whether a fixed sequence can do the job reliably.
Learn
- Workflows versus agents
- Tool selection
- Task boundaries
- Stop conditions
Lesson: Anthropic: workflows and effective agents ↗
Put it into practice
Design a small research task with two read-only sources. Draw a fixed workflow and an agent loop, then explain why you would choose one.
You’re done when
- The task names allowed sources, expected output and a stop condition.
- Explain the trade-off between the fixed workflow and the agent loop.
Step 2Implement a narrow tool contract
Tools should expose only the capabilities needed for this task.
Learn
- Input schemas
- Validation
- Read-only access
- Structured errors
Lesson: Claude: build a tool-using agent ↗
Put it into practice
Implement a lookup tool over public sample data. Reject unknown fields and invalid identifiers, and return a useful error when the source is unavailable.
You’re done when
- Valid arguments return a predictable result with a source identifier.
- Malformed arguments and unavailable data have tested error responses; the tool cannot write data.
Step 3Bound the execution loop
A loop must stop even when a model repeats itself or a tool fails.
Learn
- Tool results and state
- Iteration limits
- Timeout budgets
- Repeated calls
Lesson: Claude: build a tool-using agent ↗
Put it into practice
Add a maximum tool-call count and total request deadline. Simulate an agent repeatedly calling the same tool and show that your limits terminate it.
You’re done when
- A repeated-call scenario stops at the documented count or deadline.
- The caller receives the partial result or a clear reason for stopping.
Step 4Test untrusted inputs and tool failures
Retrieved text is evidence, not permission to change the agent's task.
Learn
- Untrusted content
- Permission checks
- Failure injection
- Source verification
Lesson: Promptfoo: assertions and evaluation metrics ↗
Put it into practice
Put a harmless instruction to change the task inside a sample document. Test it alongside missing data and a failing tool; record whether the agent stays within its allowed actions.
You’re done when
- Your tests include hostile document instructions and tool failures.
- Any boundary violation fails the evaluation even if the final answer appears useful.
Step 5Evaluate the whole agent
Measure task outcomes and tool behaviour, not only the fluency of the final response.
Learn
- Task completion
- Tool-call correctness
- Cost and latency
- Regression sets
Lesson: Promptfoo: run your first evaluation ↗
Put it into practice
Run a fixed set of tasks against two agent configurations. Publish a report with incorrect calls, unsupported claims, latency, cost and unresolved failures.
You’re done when
- The comparison uses the same tasks and scoring criteria for both configurations.
- Your report explains which configuration you would use and which failures still block release.
Build, review, repeat
A read-only research agent with tested tools, execution limits, traces and a failure report.
- Run your work against the completion criteria, including the failure cases.
- Ask someone else to follow your instructions and review the evidence.
- Record what still needs work and uncheck any steps you want to revisit.
Progress is your own checklist, not an assessment or certification.
Choose your next roadmap →