AI Agents & Tool Use
Advanced · 13 missions · about 6 hours
Build AI agents in your own code instead of only chatting with them. Call Claude through the Messages API, give it tools and run the tool-use loop, then add memory, evaluations, prompt-injection defenses, human approvals and spending limits. Finish by shipping your own agent app on Cloudflare.
Missions
- Calling an AI model from your code: Build a real Messages API request and read the reply.
- System prompts that ship: Role, scope, facts, escalation, tone and format.
- The agent loop: tools until done: Describe tools, run what the model asks for, and know when to stop.
- MCP: one tool server, many AI apps: Hosts, clients and servers, and the trust questions to ask first.
- Structured output you can trust: Extract and validate JSON from messy model replies.
- Memory and state: what an agent remembers: Keyed facts with expiry and a cap, and no secrets, ever.
- Evaluate agents: grade the run, not just the reply: Check which tools ran, with what, in which order, and what was said.
- Prompt injection: defend your app: Untrusted text must stay data, never instructions.
- Fix the AI: the agent that refunds without asking: Risky tool calls wait for a person, one call at a time.
- AI teammates: working with agent teams: Roles, delegation, approvals, routines, skills and memory.
- Automations: design an agent routine: Trigger, inputs, steps, output, guardrails and failure handling.
- Spending limits: run budgets and daily caps: Stop runaway loops, and stop strangers spending your money.
- Capstone: Ship your own AI agent: Your own agent app, live on the internet, with real guardrails.
Part of: AI Product Engineer career path, AI Automation Specialist career path