AI AgentsΒΆ

Build intelligent agents that can reason, plan, and use tools to accomplish complex tasks

🎯 Learning Objectives¢

By the end of this phase, you will:

  • βœ… Understand what AI agents are and how they differ from simple chatbots

  • βœ… Design and implement tool/function schemas for agents

  • βœ… Build agents that can use multiple tools to accomplish tasks

  • βœ… Implement the ReAct (Reasoning + Acting) pattern

  • βœ… Create multi-step agents with memory and state management

  • βœ… Use agent frameworks (LangChain, LangGraph, OpenAI Agents SDK, CrewAI)

  • βœ… Understand MCP and modern agent interoperability patterns

  • βœ… Compare managed vs self-hosted agent stacks

  • βœ… Understand the 2026 agentic platform landscape (OpenHands, OpenCode, Lingxi, mini-swe-agent, computer-use agents)

  • βœ… Evaluate and observe agents in production

  • βœ… Deploy production-ready AI agents

πŸ“š What Are AI Agents?ΒΆ

AI Agent: An autonomous system that can:

  • Perceive its environment (receive inputs)

  • Reason about what action to take

  • Act by using tools/functions

  • Learn from feedback to improve

Chatbot vs AgentΒΆ

Feature

Chatbot

AI Agent

Capability

Responds to queries

Takes actions

Tools

None

Can use external tools

Autonomy

Passive

Proactive

Memory

Conversation history

Persistent state + context

Reasoning

Single-turn

Multi-step planning

Example

β€œTell me about Paris”

β€œBook me a flight to Paris”

πŸ“‚ Phase ContentΒΆ

NotebooksΒΆ

  1. 01_intro_to_agents.ipynb

    • What are AI agents?

    • Agent architecture

    • Simple agent example

    • Agent design patterns

  2. 02_function_calling.ipynb

    • Tool schema design

    • OpenAI Function Calling API

    • Tool selection strategies

    • Error handling

  3. 03_react_pattern.ipynb

    • ReAct: Reasoning + Acting

    • Chain-of-thought with tools

    • Multi-step problem solving

    • Building a research agent

  4. 04_agent_frameworks.ipynb

    • LangChain agents

    • LangGraph for workflows

    • Managed vs self-hosted agent APIs

    • Open-source framework comparison

    • Interop protocols (MCP, A2A)

  5. 05_multi_agent_systems.ipynb

    • Coordinating multiple agents

    • Agent communication protocols

    • Task delegation

    • Building an agent team

  6. 06_mcp_model_context_protocol.ipynb

    • MCP: the emerging standard for AI tool integration (2026)

    • Connecting LLMs to external tools and data sources

    • Building MCP servers and clients

  7. 07_openai_agents_sdk_langgraph.ipynb

    • OpenAI Agents SDK

    • LangGraph stateful agents

    • Comparing agent frameworks

  8. 08_reasoning_models.ipynb

    • Reasoning-capable models for agent workflows

    • Deliberate planning vs fast-response models

    • When longer thinking improves tool use

  9. 09_autonomous_agents_2026.ipynb

    • State of the art: autonomous agents in 2026

    • OpenHands, OpenCode, Lingxi, mini-swe-agent, and computer-use agents

    • Production patterns and best practices

    • Future directions

  10. 10_agent_evaluation.ipynb

    • Why agent evaluation is hard (non-determinism, side-effects)

    • Four dimensions: task success, trajectory quality, tool correctness, safety

    • Offline eval with LLM-as-Judge scoring

    • Online eval: observability, tracing, cost tracking

    • Frameworks: promptfoo, LangSmith, Braintrust, Arize Phoenix

Assignments & PracticeΒΆ

  • assignment.md - Build a production-ready AI agent (6 bonus options incl. MCP & eval)

  • challenges.md - 9 hands-on challenges (⭐⭐ to ⭐⭐⭐⭐⭐)

QuizzesΒΆ

  • Pre-Quiz: Assess baseline knowledge

  • Post-Quiz: Validate learning outcomes

πŸ› οΈ Tools You’ll UseΒΆ

  • OpenAI Function Calling - Native tool use

  • LangChain - Agent framework

  • LangGraph - Workflow orchestration

  • OpenAI Agents SDK - Lightweight multi-agent handoffs and tracing

  • CrewAI - Role-based multi-agent coordination

  • Google ADK / Semantic Kernel - Additional framework families to be aware of

  • MCP - Standard tool connectivity across agent runtimes

  • OpenHands / OpenCode / mini-swe-agent / Lingxi - Important 2026 agentic coding platforms

2026 Agent Topics To KnowΒΆ

  • Managed agent APIs vs self-hosted frameworks

  • Open-source agentic coding platforms vs proprietary IDE agents

  • MCP for tool integration and A2A for agent delegation

  • Agent observability: tracing, tool-call inspection, latency and cost tracking

  • Agent evaluation: task success, trajectory quality, tool correctness, and safety gates

  • Long-running and proactive agents rather than single-request assistants

πŸš€ Real-World ApplicationsΒΆ

1. Customer Support AgentΒΆ

  • Answer FAQs

  • Query knowledge base

  • Create support tickets

  • Escalate to humans

2. Research AssistantΒΆ

  • Search web/papers

  • Summarize findings

  • Generate reports

  • Cite sources

3. Code Generation AgentΒΆ

  • Understand requirements

  • Write code

  • Run tests

  • Debug errors

  • Deploy to production

4. Data Analysis AgentΒΆ

  • Load datasets

  • Exploratory analysis

  • Generate visualizations

  • Statistical testing

  • Create reports

5. Personal AssistantΒΆ

  • Check calendar

  • Send emails

  • Book meetings

  • Set reminders

  • Research topics

πŸ“Š Project: Build Your Own AgentΒΆ

You’ll build one of these agents:

  1. SQL Agent - Natural language β†’ SQL queries β†’ Results β†’ Insights

  2. Research Agent - Topic β†’ Search β†’ Summarize β†’ Report

  3. Coding Agent - Requirements β†’ Code β†’ Test β†’ Fix β†’ Deploy

  4. Customer Service Agent - Query β†’ Knowledge base β†’ Response β†’ Ticket

⏱️ Time Commitment¢

  • Videos/Reading: 4 hours

  • Notebooks: 6 hours

  • Assignment: 8 hours

  • Challenges: 4-12 hours (optional)

  • Total: ~18-30 hours

πŸ“– PrerequisitesΒΆ

Before starting this phase, ensure you understand:

  • βœ… LLM Basics (Phase 11: Prompt Engineering)

  • βœ… API Usage (Python, REST APIs)

  • βœ… JSON (Tool schemas are JSON)

  • βœ… Async Programming (For concurrent tool calls)

  • βœ… RAG Systems (Phase 8) - helpful but not required

πŸ”— ResourcesΒΆ

DocumentationΒΆ

PapersΒΆ

VideosΒΆ

CommunityΒΆ

πŸŽ“ Learning PathΒΆ

Week 1: Fundamentals
β”œβ”€β”€ Day 1-2: What are agents? (Notebook 1)
β”œβ”€β”€ Day 3-4: Function calling (Notebook 2)
└── Day 5-7: ReAct pattern (Notebook 3)

Week 2: Frameworks & Protocols
β”œβ”€β”€ Day 1-2: Agent frameworks & no-code builders (Notebook 4)
β”œβ”€β”€ Day 3-4: Multi-agent systems & A2A (Notebook 5)
β”œβ”€β”€ Day 5:   MCP deep-dive (Notebook 6)
└── Day 6-7: OpenAI Agents SDK & LangGraph (Notebook 7)

Week 3: Advanced & Evaluation
β”œβ”€β”€ Day 1-2: Reasoning models in agent loops (Notebook 8)
β”œβ”€β”€ Day 3-4: Autonomous agents 2026 (Notebook 9)
β”œβ”€β”€ Day 5:   Agent evaluation & safety (Notebook 10)
└── Day 6-7: Assignment β€” build, evaluate & deploy

βœ… AssessmentΒΆ

Pre-Quiz (10 questions)ΒΆ

Test your baseline knowledge of:

  • Agent concepts

  • Tool use patterns

  • API design

Post-Quiz (10 questions)ΒΆ

Validate your mastery of:

  • Agent architecture

  • Function calling implementation

  • ReAct pattern

  • Production best practices

Assignment (100 points)ΒΆ

Build a production-ready agent with:

  • Multiple tools (30 pts)

  • Error handling (20 pts)

  • Memory management (20 pts)

  • Evaluation & testing (30 pts)

πŸ† Success CriteriaΒΆ

By the end of this phase, you should be able to:

  • βœ… Explain the difference between chatbots and agents

  • βœ… Design effective tool schemas

  • βœ… Implement function calling with OpenAI API

  • βœ… Build a ReAct agent from scratch

  • βœ… Use LangChain/LangGraph for complex workflows

  • βœ… Implement agent memory and state

  • βœ… Evaluate agents with LLM-as-Judge and trajectory scoring

  • βœ… Deploy a production agent

  • βœ… Debug common agent issues

πŸš€ Next StepsΒΆ

After completing this phase:

  1. Phase 16: Model Evaluation & Metrics

  2. Phase 17: Debugging AI Systems

  3. Phase 18: Low-Code AI Tools (Gradio, Streamlit)

Or explore advanced topics:

  • Multi-agent collaboration

  • Agent fine-tuning

  • Reinforcement learning for agents

  • Human-in-the-loop systems

Ready to build intelligent agents? Let’s go! πŸ€–βœ¨