Skip to content

Latest commit

Β 

History

History
108 lines (79 loc) Β· 3.34 KB

File metadata and controls

108 lines (79 loc) Β· 3.34 KB

πŸ€– Building AI Chat Agents with LangChain, Chainlit & GitHub Models

A 90-minute hands-on workshop for tech conferences

Welcome to this practical workshop where you'll build a fully functional AI chat agent from scratch! By the end of this session, you'll have created an intelligent assistant that can have conversations, call external tools (like fetching weather data), and integrate with the Model Context Protocol (MCP).


🎯 What You'll Build

A conversational AI agent with:

  • Real-time chat interface powered by Chainlit
  • LLM backbone using GitHub Models (completely free!)
  • Tool calling capabilities (weather API integration)
  • MCP integration for extensible agent capabilities

Workshop Overview


πŸ“š Workshop Structure

Phase Duration Topic
0 5 min Prerequisites & Setup Check
1 10 min Environment Setup
2 10 min GitHub Models Configuration
3 15 min Your First Chainlit Chat App
4 15 min Adding LangChain for LLM Power
5 20 min Tool Calling with Weather API
6 15 min MCP Integration

Each phase ends with a βœ… Checkpoint where you'll verify everything works before moving on.


πŸ› οΈ Tech Stack

Technology Purpose Version
Python Runtime 3.10+
Chainlit Chat UI Framework 2.x
LangChain LLM Orchestration 0.3.x
GitHub Models Free LLM API Latest
WeatherAPI Tool Demo Free Tier
MCP Agent Protocol 1.x

πŸš€ Quick Start

# Clone or create the workshop folder
mkdir langchain-chainlit-workshop
cd langchain-chainlit-workshop

# Follow the phases in order starting from:
# πŸ“– docs/00-prerequisites.md

πŸ“ Project Structure

langchain-chainlit-workshop/
β”œβ”€β”€ README.md                 # You are here
β”œβ”€β”€ SUMMARY.md               # GitBook navigation
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ 00-prerequisites.md  # What you need before starting
β”‚   β”œβ”€β”€ 01-environment.md    # Python & dependencies setup
β”‚   β”œβ”€β”€ 02-github-models.md  # Getting your free API access
β”‚   β”œβ”€β”€ 03-chainlit-basics.md # First chat application
β”‚   β”œβ”€β”€ 04-langchain.md      # LLM integration
β”‚   β”œβ”€β”€ 05-tool-calling.md   # Weather API tools
β”‚   └── 06-mcp-integration.md # MCP setup
β”œβ”€β”€ solutions/               # Complete code for each phase
β”‚   β”œβ”€β”€ phase-03/
β”‚   β”œβ”€β”€ phase-04/
β”‚   β”œβ”€β”€ phase-05/
β”‚   └── phase-06/
└── assets/                  # Images and diagrams

πŸ‘¨β€πŸ« For Workshop Facilitators

Before the Workshop

  1. Ensure attendees have received the prerequisites checklist
  2. Have backup GitHub tokens ready for attendees who forgot
  3. Test the WeatherAPI endpoint is responding
  4. Prepare a hotspot/backup internet option

During the Workshop

  • Each phase has a checkpoint - don't proceed until 80%+ have passed
  • The solutions/ folder contains working code for each phase
  • Common issues are documented at the end of each phase

πŸ“ License

This workshop material is provided under the MIT License. Feel free to use, modify, and distribute for your own workshops and training sessions.


Ready to start? Head to Prerequisites! πŸ‘‰