Skip to content
EN DE

Level 3 Complete

You’ve built your first autonomous agent — a research agent that independently researches, summarizes, and only saves after your approval. That’s a big step: from chatbot to actionable agent.

  • Tool Calling: Define tools with tool() — Zod inputSchema, .describe() for parameters, execute for execution. The LLM autonomously decides when and with which parameters a tool is called.
  • Tools in the Frontend: Message parts (text, tool-call, tool-result) for transparent UIs. fullStream delivers all events for loading states and tool-specific rendering.
  • Tool Loop Agent: Multi-step agents with stopWhen: stepCountIs(n). The LLM iterates autonomously through the agentic loop — tool call, execute, result, next step — until the task is done.
  • MCP (Model Context Protocol): Standardized protocol for external tool servers. createMCPClient with HTTP or stdio transport, client.tools() loads all available tools automatically.
  • Tool Approval: Human-in-the-loop with needsApproval. Static (true) or dynamic (async function). toolCallApproval handler for controlled execution of critical operations.
Skill Tree — Level 3 Agents & MCP complete, Level 4 Persistence is the next level

Level 4: Persistence — Your agent can now act, but it forgets everything after each request. How do you store chat histories, restore conversations, and build persistent agents? You’ll learn database integration, message history, and session management.

Part of AI Learning — free courses from prompt to production. Jan on LinkedIn