Week 6: Agent Frameworks

LangGraph, CrewAI, framework comparison and selection

Week 6 of 12

Learning Objectives

  • Build agents with LangGraph
  • Compare framework trade-offs
  • Select appropriate frameworks for tasks

Topics Covered

  • LangGraph state machines
  • CrewAI team agents
  • Framework comparison
  • Orchestration patterns

Resources

Jupyter Notebooks

Open LangGraph Agent in Colab LangGraph Agent

Required Readings

PaperAuthorsYearLink
LangGraph Documentation LangChain 2024 Link
TaskWeaver: A Code-First Agent Framework Qiao et al. 2024 arXiv

Reading Guide: Agent Frameworks

3-4 hours LangGraph AutoGen State management

Comparison of AutoGen, LangGraph, and TaskWeaver frameworks

Primary Paper

AutoGen: Enabling Next-Gen LLM Applications
Wu, Q., Bansal, G., Zhang, J., et al. (2023)
arXiv arXiv

Secondary Papers

  • LangGraph Documentation - LangChain Link
  • TaskWeaver: A Code-First Agent Framework - Qiao, B., et al. (2024) arXiv

Exercise: Framework Implementation

100 Points 5-8 hours Advanced

Build agents using LangGraph and compare frameworks

Learning Objectives

  • Apply: Build agents with LangGraph
  • Analyze: Compare framework trade-offs
  • Evaluate: Select appropriate frameworks

Tasks

TaskPointsDescription
LangGraph Agent 40 Build research assistant with LangGraph
AutoGen Agent 30 Implement same agent in AutoGen
Comparison Report 30 Compare implementation experiences

Exercise

Compare agent frameworks by implementing the same task in:

  1. LangGraph
  2. CrewAI
  3. Plain Python

Evaluate ease of use, flexibility, and performance.

Discussion Questions

  1. What are the trade-offs between different frameworks?
  2. When should you use a framework vs. building from scratch?
  3. How do you choose the right framework for your use case?

Additional Resources

Discussion & Questions

Join the Conversation

Have questions about this week's material? Want to discuss concepts with fellow students?



Back to top