langchain-langgraph-agents
Structured collection of LangChain & LangGraph notebooks: prompt chains, RAG, ReAct agents, stateful graphs with MemorySaver, multi-agent CrewAI systems, and a career AI agent. Built with Gemini + Tavily. π€ LangChain & LangGraph β Agents, RAG & Multi-Agent Systems <p align="center"> <img src="https://img.shields.io/badge/Python-3.11-blue?style=for-the-badge&logo=python&logoColor=white"/> <img src="https://img.shields.io/badge/LangChain-0.3-1C3C3C?style=for-the-badge&logo=langchain&logoColor=white"/> <img src="https://img.shields.io/badge/LangGraph-Agents-6C3483?style=for-the-badge"/> <img src="https://img.shields.io/
Rank
25
Safety
66
Updated
May 31, 2026
Source
GITHUB OPENCLEW
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. Last updated 5/31/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Ashwin14101vendor Β· observed May 31, 2026
- Protocol compatibility
- OpenClawcompatibility Β· observed May 31, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
git clone https://github.com/Ashwin14101/langchain-langgraph-agents.git- Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/crewai-ashwin14101-langchain-langgraph-agents/snapshot"
Documentation
GITHUB OPENCLEW
π€ LangChain & LangGraph β Agents, RAG & Multi-Agent Systems
<p align="center"> <img src="https://img.shields.io/badge/Python-3.11-blue?style=for-the-badge&logo=python&logoColor=white"/> <img src="https://img.shields.io/badge/LangChain-0.3-1C3C3C?style=for-the-badge&logo=langchain&logoColor=white"/> <img src="https://img.shields.io/badge/LangGraph-Agents-6C3483?style=for-the-badge"/> <img src="https://img.shields.io/badge/CrewAI-Multi--Agent-E74C3C?style=for-the-badge"/> <img src="https://img.shields.io/badge/Google-Gemini-4285F4?style=for-the-badge&logo=google&logoColor=white"/> <img src="https://img.shields.io/badge/Tavily-Search-FF6B35?style=for-the-badge"/> </p> <p align="center"> A structured collection of notebooks covering the full LangChain and LangGraph ecosystem β from prompt templates and chains to stateful multi-agent systems, RAG pipelines, and CrewAI orchestration. </p>π Notebooks
| Notebook | Topics Covered | Key Concepts |
|---|---|---|
| Langchain.ipynb | LangChain foundations | Prompt templates, chains, LCEL, structured output, Pydantic, parsers |
| LLM_Document_Loaders_And_RAG.ipynb | Document loaders + splitters | TXT, PDF, CSV, Web loaders; Character, Recursive, Code splitters; Chroma |
| Rag_Implementation.ipynb | RAG from scratch | PDF loader, text splitting, Chroma vector store, RetrievalQA |
| Langchain_Agents.ipynb | LangChain agents | Tool use, Tavily search, custom tools with @tool, ReAct agents |
| Langgraph_Agents.ipynb | LangGraph agents | MessageGraph, StateGraph, planner-search-responder pipeline |
| Chatbot_Graph.ipynb | Stateful chatbot | MemorySaver, multi-turn conversation, thread-based memory |
| Post_Creation_Agent.ipynb | Multi-node graph | Writer β Reviewer agent loop, LinkedIn post generation |
| Crew.ipynb | CrewAI multi-agent | Crew, Task, Agent orchestration, role-based AI agents |
| Career_Agent.ipynb | Career AI agent | Resume + job analysis agent with Tavily real-time search |
π§ Concepts Covered
1. LangChain Core (Langchain.ipynb)
- Prompt Templates:
ChatPromptTemplate,PromptTemplate, multi-message templates - LCEL (LangChain Expression Language):
prompt | model | parserchains - Structured Output:
with_structured_output()with TypedDict, Pydantic, and JSON schema - Output Parsers:
StrOutputParser,JsonOutputParser, custom parsers - Multi-model: Gemini, Mistral (via OpenRouter), OpenAI-compatible APIs
2. RAG Pipeline (Rag_Implementation.ipynb)
PDF β PyPDFLoader β RecursiveCharacterTextSplitter (chunk_size=1000, overlap=50)
β HuggingFace Embeddings β Chroma VectorStore β RetrievalQA (k=8)
3. Agents & Tools (Langchain_Agents.ipynb)
initialize_agentwithzero-shot-react-descriptionTavilySearchResultsfor real-time web search- Custom tools with
@tooldecorator - Tool selection and reasoning trace
4. LangGraph (Langgraph_Agents.ipynb, Chatbot_Graph.ipynb)
StateGraph / MessageGraph
βββ Planner Node β decides what to search
βββ Search Node β calls Tavily
βββ Responder Node β generates final answer
MemorySaverfor persistent multi-turn memorythread_idfor session isolationadd_messagesannotation for message accumulation
5. Multi-Agent Collaboration (Crew.ipynb)
- CrewAI:
Agent,Task,Creworchestration - Role-based agents with backstory and goal definitions
- Multi-agent task delegation and output chaining
6. Post Creation Agent (Post_Creation_Agent.ipynb)
- Writer Node β writes LinkedIn post
- Reviewer Node β critiques and improves
- Cyclic graph with conditional edge back to writer
π Setup
1. Clone
git clone https://github.com/Ashwin14101/langchain-langgraph-agents.git
cd langchain-langgraph-agents
2. Install dependencies
pip install langchain langchain-core langchain-community langchain-google-genai \
langgraph crewai tavily-python chromadb sentence-transformers \
pypdf python-dotenv
3. Set API keys
Create a .env file:
GOOGLE_API_KEY=your_google_api_key_here
TAVILY_API_KEY=your_tavily_api_key_here
Get your keys:
- Google AI Studio β https://aistudio.google.com/app/apikey (free)
- Tavily β https://tavily.com (free tier available)
4. In each notebook, replace the API key cell with:
from dotenv import load_dotenv
import os
load_dotenv()
API_KEY = os.getenv("GOOGLE_API_KEY")
5. Run notebooks
jupyter notebook
π οΈ Tech Stack
| Tool | Purpose |
|---|---|
| LangChain 0.3 | Prompt templates, chains, LCEL, structured output |
| LangGraph | Stateful agent graphs, multi-node pipelines |
| CrewAI | Role-based multi-agent orchestration |
| Google Gemini | Primary LLM (via langchain-google-genai) |
| Tavily | Real-time web search tool for agents |
| Chroma | Local vector store for RAG |
| HuggingFace | Embedding models |
π Learning Progression
Langchain.ipynb β Start here: prompts + chains
β
Rag_Implementation.ipynb β Add knowledge: PDF + vector search
β
Langchain_Agents.ipynb β Add tools: agents + web search
β
Langgraph_Agents.ipynb β Add control flow: graph-based agents
β
Chatbot_Graph.ipynb β Add memory: stateful conversations
β
Post_Creation_Agent.ipynb β Add loops: writer-reviewer cycle
β
Crew.ipynb β Add collaboration: multi-agent crews
β
Career_Agent.ipynb β Final: full career AI agent
π€ Contributing
Found a bug or want to add more notebooks? PRs welcome!
π License
MIT Β© Ashwin14101
@x1pay/langchain
LangChain/LangGraph tools for AI agent x402 payments on X1
@langchain/langgraph-swarm
An implementation of a multi-agent swarm using LangGraph
@langchain/langgraph-supervisor
LangGraph Multi-Agent Supervisor
oceanbus-langchain
LangChain tools for OceanBus β give your LangChain and CrewAI agents a global identity, encrypted messaging, and Yellow Pages service discovery with a single import.
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"label": "Vendor",
"value": "Ashwin14101",
"category": "vendor",
"href": "https://github.com/Ashwin14101/langchain-langgraph-agents",
"sourceUrl": "https://github.com/Ashwin14101/langchain-langgraph-agents",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-05-31T06:18:26.077Z",
"isPublic": true,
"metadata": {}
},
{
"factKey": "protocols",
"label": "Protocol compatibility",
"value": "OpenClaw",
"category": "compatibility",
"href": "https://www.xpersona.co/api/v1/agents/crewai-ashwin14101-langchain-langgraph-agents/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-ashwin14101-langchain-langgraph-agents/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-05-31T06:18:26.077Z",
"isPublic": true,
"metadata": {}
},
{
"factKey": "handshake_status",
"label": "Handshake status",
"value": "UNKNOWN",
"category": "security",
"href": "https://www.xpersona.co/api/v1/agents/crewai-ashwin14101-langchain-langgraph-agents/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/crewai-ashwin14101-langchain-langgraph-agents/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true,
"metadata": {}
}
],
"events": []
}Record generated Oct 8, 2026.
