Lab: Turn the Copilot into a Guarded Agent
Today the copilot learns to act. You add a read tool bound to the user's identity and a write tool that creates tickets, wrap the agent in guardrails, attack it with a hidden instruction, trace it, and work out what it costs compared with plain RAG.
In this lesson
- Learning objectives
- Step 1: three tools (40 min)
- Step 2: the agent loop with limits (30 min)
- Step 3: guardrails (25 min)
- Step 4: trace and version (15 min)
- Step 5: cost per 1,000 requests (10 min)
- Done when
- Self-check
Questions covered
- Walk me through the agent you built and how you secured it.
- Turning the copilot into an agent raised cost per request 3×. Is it worth it?
This lesson is part of AI Architect: System Design & AI Integration. Unlock the full course to read it, take the quiz and track your progress.