How langchain-ai/lca-lc-foundations works
This repository is a LangChain Academy course companion, not one integrated application: its lessons demonstrate agent creation, MCP, and production-oriented agent patterns, with an optional chat UI. The principal user-to-result flow is exploring a lesson project to see an agent perform a domain task; in the email lesson, the UI also supports inspecting and responding to human-review interruptions. The README documents additional lesson topics, but most lesson implementations are not sampled, so those capabilities are represented without speculative internal links.
Main entry points: 1.5_personal_chef.py Personal Chef · index.tsx Interrupt Review · 3.5_email_agent.py Email Agent · page.tsx Chat UI
Components 20
Course Projects
- Personal Chef
notebooks/module-1/1.5_personal_chef.py - MCP Server
notebooks/module-2/resources/2.1_mcp_server.py - Email Agent
notebooks/module-3/3.5_email_agent.py
Chat Interface
- Chat UI
notebooks/module-3/agent-chat-ui/src/app/page.tsx - Conversation View
notebooks/module-3/agent-chat-ui/src/components/thread/index.tsx - Thread History
notebooks/module-3/agent-chat-ui/src/components/thread/history/index.tsx - Message Rendering
notebooks/module-3/agent-chat-ui/src/components/thread/messages/ai.tsx - Content Previews
notebooks/module-3/agent-chat-ui/src/components/thread/MultimodalPreview.tsx
Human Review
- Interrupt Review
notebooks/module-3/agent-chat-ui/src/components/thread/agent-inbox/index.tsx - Review Actions
notebooks/module-3/agent-chat-ui/src/components/thread/agent-inbox/components/thread-actions-view.tsx - Decision Input
notebooks/module-3/agent-chat-ui/src/components/thread/agent-inbox/components/inbox-item-input.tsx - State Inspector
notebooks/module-3/agent-chat-ui/src/components/thread/agent-inbox/components/state-view.tsx
UI Runtime
- API Proxy
notebooks/module-3/agent-chat-ui/src/app/api/[..._path]/route.ts - Thread Provider
notebooks/module-3/agent-chat-ui/src/providers/Thread.tsx - Graph Client
notebooks/module-3/agent-chat-ui/src/providers/client.ts - Stream Provider
notebooks/module-3/agent-chat-ui/src/providers/Stream.tsx
Other components
- Learner
- Model Providers
- Tavily Search
- LangGraph API
Connections 14
- Learner → Personal Chef: explores lesson
README.md - Learner → MCP Server: explores lesson
README.md - Learner → Email Agent: explores lesson
README.md - Learner → Chat UI: uses bonus UI
README.md - Message Rendering → Interrupt Review: renders review
notebooks/module-3/agent-chat-ui/src/components/thread/messages/ai.tsx - Interrupt Review → Review Actions: shows actions
notebooks/module-3/agent-chat-ui/src/components/thread/agent-inbox/index.tsx - Interrupt Review → State Inspector: shows state
notebooks/module-3/agent-chat-ui/src/components/thread/agent-inbox/index.tsx - Review Actions → Decision Input: collects decisions
notebooks/module-3/agent-chat-ui/src/components/thread/agent-inbox/components/thread-actions-view.tsx - Thread Provider → Graph Client: creates client
notebooks/module-3/agent-chat-ui/src/providers/Thread.tsx - Stream Provider → Thread Provider: uses provider
notebooks/module-3/agent-chat-ui/src/providers/Stream.tsx - Personal Chef → Model Providers: uses models
README.md - Email Agent → Model Providers: uses models
README.md - Personal Chef → Tavily Search: uses search
README.md - Chat UI → LangGraph API: connects to runtime
README.md