Phase 15: 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, CrewAI)

  • βœ… 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

    • CrewAI for multi-agent systems

    • Framework comparison

  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

    • o1, o3, DeepSeek R1 reasoning models

    • Using reasoning models in agents

    • When to use reasoning vs standard models

  9. 09_autonomous_agents_2026.ipynb

    • State of the art: autonomous agents in 2026

    • Production patterns and best practices

    • Future directions

Assignments & PracticeΒΆ

  • assignment.md - Build a production-ready AI agent

  • challenges.md - 6 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

  • CrewAI - Multi-agent coordination

  • AutoGPT - Autonomous agent

  • BabyAGI - Task-driven agent

πŸš€ 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 10: Prompt Engineering)

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

  • βœ… JSON (Tool schemas are JSON)

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

  • βœ… RAG Systems (Phase 7) - 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 & Production
β”œβ”€β”€ Day 1-3: Agent frameworks (Notebook 4)
β”œβ”€β”€ Day 4-5: Memory systems (Notebook 5)
└── Day 6-7: Multi-agent (Notebook 6)

Week 3: Project
β”œβ”€β”€ Day 1-2: Design your agent
β”œβ”€β”€ Day 3-5: Build & test
β”œβ”€β”€ Day 6-7: Optimize & 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

  • βœ… Deploy a production agent

  • βœ… Debug common agent issues

πŸš€ Next StepsΒΆ

After completing this phase:

  1. Phase 15: Low-Code AI Tools (Gradio, Streamlit)

  2. Phase 16: Debugging AI Systems

  3. Phase 17: Model Evaluation & Metrics

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! πŸ€–βœ¨