{"id":"903f77f6-2bf6-4eac-b0e3-fb1811557c69","entityType":"agent","slug":"crewai-ashwin14101-langchain-langgraph-agents","name":"langchain-langgraph-agents","canonicalUrl":"https://www.xpersona.co/agent/crewai-ashwin14101-langchain-langgraph-agents","canonicalPath":"/agent/crewai-ashwin14101-langchain-langgraph-agents","generatedAt":"2026-10-09T00:03:11.433Z","source":"GITHUB_OPENCLEW","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-05-31T06:18:26.077Z","emptyReason":null},"description":"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/","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. Last updated 5/31/2026.","installCommand":"git clone https://github.com/Ashwin14101/langchain-langgraph-agents.git","sourceUrl":"https://github.com/Ashwin14101/langchain-langgraph-agents","homepage":null,"primaryLinks":[{"label":"View Source","url":"https://github.com/Ashwin14101/langchain-langgraph-agents","kind":"source"}],"safetyScore":66,"overallRank":25.2,"popularityScore":0,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Structured collection of LangChain & LangGraph notebooks: prompt chains, RAG, ReAct agents, stateful graphs with MemorySaver, multi-agent CrewAI systems, and a "},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-05-31T06:18:26.077Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[{"label":"crewai","status":"self-declared"},{"label":"multi-agent","status":"self-declared"}],"verifiedCount":0,"selfDeclaredCount":3,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"},{"key":"crewai","type":"capability","support":"supported","confidenceSource":"profile","notes":"Declared in agent profile metadata"},{"key":"multi-agent","type":"capability","support":"supported","confidenceSource":"profile","notes":"Declared in agent profile metadata"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile capability:crewai|supported|profile capability:multi-agent|supported|profile"}},"adoption":{"evidence":{"source":"no-adoption-signals","verified":false,"confidence":"low","updatedAt":"2026-05-31T06:18:26.077Z","emptyReason":"No source adoption metrics were available."},"stars":0,"forks":0,"downloads":null,"packageName":null,"latestVersion":null,"tractionLabel":null},"release":{"evidence":{"source":"agent-index","verified":false,"confidence":"medium","updatedAt":"2026-05-31T06:18:26.077Z","emptyReason":null},"lastUpdatedAt":"2026-05-31T06:18:26.077Z","lastCrawledAt":"2026-05-31T06:18:26.077Z","lastIndexedAt":null,"nextCrawlAt":"2026-06-07T06:18:26.077Z","lastVerifiedAt":null,"highlights":[]},"execution":{"evidence":{"source":"GITHUB OPENCLEW","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"git clone https://github.com/Ashwin14101/langchain-langgraph-agents.git","setupComplexity":"low","setupSteps":["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":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/crewai-ashwin14101-langchain-langgraph-agents/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/crewai-ashwin14101-langchain-langgraph-agents/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/crewai-ashwin14101-langchain-langgraph-agents/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/crewai-ashwin14101-langchain-langgraph-agents/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/crewai-ashwin14101-langchain-langgraph-agents/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/crewai-ashwin14101-langchain-langgraph-agents/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"GITHUB_OPENCLEW","generatedAt":"2026-10-09T00:03:11.433Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/crewai-ashwin14101-langchain-langgraph-agents/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/crewai-ashwin14101-langchain-langgraph-agents/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/crewai-ashwin14101-langchain-langgraph-agents/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/crewai-ashwin14101-langchain-langgraph-agents/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"GITHUB OPENCLEW","verified":false,"confidence":"high","updatedAt":"2026-05-31T06:18:26.077Z","emptyReason":null},"readme":"# 🤖 LangChain & LangGraph — Agents, RAG & Multi-Agent Systems\n\n<p align=\"center\">\n  <img src=\"https://img.shields.io/badge/Python-3.11-blue?style=for-the-badge&logo=python&logoColor=white\"/>\n  <img src=\"https://img.shields.io/badge/LangChain-0.3-1C3C3C?style=for-the-badge&logo=langchain&logoColor=white\"/>\n  <img src=\"https://img.shields.io/badge/LangGraph-Agents-6C3483?style=for-the-badge\"/>\n  <img src=\"https://img.shields.io/badge/CrewAI-Multi--Agent-E74C3C?style=for-the-badge\"/>\n  <img src=\"https://img.shields.io/badge/Google-Gemini-4285F4?style=for-the-badge&logo=google&logoColor=white\"/>\n  <img src=\"https://img.shields.io/badge/Tavily-Search-FF6B35?style=for-the-badge\"/>\n</p>\n\n<p align=\"center\">\n  A structured collection of notebooks covering the full LangChain and LangGraph ecosystem —\n  from prompt templates and chains to stateful multi-agent systems, RAG pipelines, and CrewAI orchestration.\n</p>\n\n---\n\n## 📂 Notebooks\n\n| Notebook | Topics Covered | Key Concepts |\n|---|---|---|\n| [`Langchain.ipynb`](./Langchain.ipynb) | LangChain foundations | Prompt templates, chains, LCEL, structured output, Pydantic, parsers |\n| [`LLM_Document_Loaders_And_RAG.ipynb`](./LLM_Document_Loaders_And_RAG.ipynb) | Document loaders + splitters | TXT, PDF, CSV, Web loaders; Character, Recursive, Code splitters; Chroma |\n| [`Rag_Implementation.ipynb`](./Rag_Implementation.ipynb) | RAG from scratch | PDF loader, text splitting, Chroma vector store, RetrievalQA |\n| [`Langchain_Agents.ipynb`](./Langchain_Agents.ipynb) | LangChain agents | Tool use, Tavily search, custom tools with `@tool`, ReAct agents |\n| [`Langgraph_Agents.ipynb`](./Langgraph_Agents.ipynb) | LangGraph agents | MessageGraph, StateGraph, planner-search-responder pipeline |\n| [`Chatbot_Graph.ipynb`](./Chatbot_Graph.ipynb) | Stateful chatbot | MemorySaver, multi-turn conversation, thread-based memory |\n| [`Post_Creation_Agent.ipynb`](./Post_Creation_Agent.ipynb) | Multi-node graph | Writer → Reviewer agent loop, LinkedIn post generation |\n| [`Crew.ipynb`](./Crew.ipynb) | CrewAI multi-agent | Crew, Task, Agent orchestration, role-based AI agents |\n| [`Career_Agent.ipynb`](./Career_Agent.ipynb) | Career AI agent | Resume + job analysis agent with Tavily real-time search |\n\n---\n\n## 🧠 Concepts Covered\n\n### 1. LangChain Core (`Langchain.ipynb`)\n- **Prompt Templates**: `ChatPromptTemplate`, `PromptTemplate`, multi-message templates\n- **LCEL (LangChain Expression Language)**: `prompt | model | parser` chains\n- **Structured Output**: `with_structured_output()` with TypedDict, Pydantic, and JSON schema\n- **Output Parsers**: `StrOutputParser`, `JsonOutputParser`, custom parsers\n- **Multi-model**: Gemini, Mistral (via OpenRouter), OpenAI-compatible APIs\n\n### 2. RAG Pipeline (`Rag_Implementation.ipynb`)\n```\nPDF → PyPDFLoader → RecursiveCharacterTextSplitter (chunk_size=1000, overlap=50)\n    → HuggingFace Embeddings → Chroma VectorStore → RetrievalQA (k=8)\n```\n\n### 3. Agents & Tools (`Langchain_Agents.ipynb`)\n- `initialize_agent` with `zero-shot-react-description`\n- `TavilySearchResults` for real-time web search\n- Custom tools with `@tool` decorator\n- Tool selection and reasoning trace\n\n### 4. LangGraph (`Langgraph_Agents.ipynb`, `Chatbot_Graph.ipynb`)\n```\nStateGraph / MessageGraph\n    ├── Planner Node    → decides what to search\n    ├── Search Node     → calls Tavily\n    └── Responder Node  → generates final answer\n```\n- `MemorySaver` for persistent multi-turn memory\n- `thread_id` for session isolation\n- `add_messages` annotation for message accumulation\n\n### 5. Multi-Agent Collaboration (`Crew.ipynb`)\n- **CrewAI**: `Agent`, `Task`, `Crew` orchestration\n- Role-based agents with backstory and goal definitions\n- Multi-agent task delegation and output chaining\n\n### 6. Post Creation Agent (`Post_Creation_Agent.ipynb`)\n- Writer Node → writes LinkedIn post\n- Reviewer Node → critiques and improves\n- Cyclic graph with conditional edge back to writer\n\n---\n\n## 🚀 Setup\n\n### 1. Clone\n\n```bash\ngit clone https://github.com/Ashwin14101/langchain-langgraph-agents.git\ncd langchain-langgraph-agents\n```\n\n### 2. Install dependencies\n\n```bash\npip install langchain langchain-core langchain-community langchain-google-genai \\\n            langgraph crewai tavily-python chromadb sentence-transformers \\\n            pypdf python-dotenv\n```\n\n### 3. Set API keys\n\nCreate a `.env` file:\n```env\nGOOGLE_API_KEY=your_google_api_key_here\nTAVILY_API_KEY=your_tavily_api_key_here\n```\n\n> **Get your keys:**\n> - Google AI Studio → https://aistudio.google.com/app/apikey (free)\n> - Tavily → https://tavily.com (free tier available)\n\n### 4. In each notebook, replace the API key cell with:\n\n```python\nfrom dotenv import load_dotenv\nimport os\nload_dotenv()\nAPI_KEY = os.getenv(\"GOOGLE_API_KEY\")\n```\n\n### 5. Run notebooks\n\n```bash\njupyter notebook\n```\n\n---\n\n## 🛠️ Tech Stack\n\n| Tool | Purpose |\n|---|---|\n| **LangChain 0.3** | Prompt templates, chains, LCEL, structured output |\n| **LangGraph** | Stateful agent graphs, multi-node pipelines |\n| **CrewAI** | Role-based multi-agent orchestration |\n| **Google Gemini** | Primary LLM (via `langchain-google-genai`) |\n| **Tavily** | Real-time web search tool for agents |\n| **Chroma** | Local vector store for RAG |\n| **HuggingFace** | Embedding models |\n\n---\n\n## 📈 Learning Progression\n\n```\nLangchain.ipynb          ← Start here: prompts + chains\n      │\nRag_Implementation.ipynb ← Add knowledge: PDF + vector search\n      │\nLangchain_Agents.ipynb   ← Add tools: agents + web search\n      │\nLanggraph_Agents.ipynb   ← Add control flow: graph-based agents\n      │\nChatbot_Graph.ipynb      ← Add memory: stateful conversations\n      │\nPost_Creation_Agent.ipynb ← Add loops: writer-reviewer cycle\n      │\nCrew.ipynb               ← Add collaboration: multi-agent crews\n      │\nCareer_Agent.ipynb       ← Final: full career AI agent\n```\n\n---\n\n## 🤝 Contributing\n\nFound a bug or want to add more notebooks? PRs welcome!\n\n---\n\n## 📄 License\n\nMIT © [Ashwin14101](https://github.com/Ashwin14101)\n","readmeExcerpt":"🤖 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/","codeSnippets":[],"executableExamples":[{"language":"text","snippet":"PDF → PyPDFLoader → RecursiveCharacterTextSplitter (chunk_size=1000, overlap=50)\n    → HuggingFace Embeddings → Chroma VectorStore → RetrievalQA (k=8)"},{"language":"text","snippet":"StateGraph / MessageGraph\n    ├── Planner Node    → decides what to search\n    ├── Search Node     → calls Tavily\n    └── Responder Node  → generates final answer"},{"language":"bash","snippet":"git clone https://github.com/Ashwin14101/langchain-langgraph-agents.git\ncd langchain-langgraph-agents"},{"language":"bash","snippet":"pip install langchain langchain-core langchain-community langchain-google-genai \\\n            langgraph crewai tavily-python chromadb sentence-transformers \\\n            pypdf python-dotenv"},{"language":"env","snippet":"GOOGLE_API_KEY=your_google_api_key_here\nTAVILY_API_KEY=your_tavily_api_key_here"},{"language":"python","snippet":"from dotenv import load_dotenv\nimport os\nload_dotenv()\nAPI_KEY = os.getenv(\"GOOGLE_API_KEY\")"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[],"languages":["python"],"docsSourceLabel":"GITHUB OPENCLEW","editorialOverview":"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/","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":405,"uniquenessScore":61,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-05-31T06:18:26.077Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-05-31T06:18:26.077Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-09T00:03:11.433Z","emptyReason":null},"items":[{"id":"959108e7-5f7c-45ac-bea0-9ab67f017226","entityType":"agent","canonicalPath":"/agent/langchain-x1pay-langchain","slug":"langchain-x1pay-langchain","name":"@x1pay/langchain","description":"LangChain/LangGraph tools for AI agent x402 payments on X1","url":"https://www.npmjs.com/package/@x1pay/langchain","homepage":null,"source":"GITHUB_OPENCLEW","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":70,"overallRank":65,"updatedAt":"2026-06-01T00:29:07.099Z","createdAt":"2026-05-23T06:52:58.553Z","downloads":null},{"id":"4f8f8f95-34f7-49a9-b516-391d1c355d6c","entityType":"agent","canonicalPath":"/agent/langchain-langchain-langgraph-swarm","slug":"langchain-langchain-langgraph-swarm","name":"@langchain/langgraph-swarm","description":"An implementation of a multi-agent swarm using LangGraph","url":"git+ssh://git@github.com/langchain-ai/langgraphjs.git","homepage":"https://github.com/langchain-ai/langgraphjs#readme","source":"GITHUB_OPENCLEW","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":70,"overallRank":65,"updatedAt":"2026-06-01T00:29:03.792Z","createdAt":"2026-05-23T06:52:55.396Z","downloads":null},{"id":"e36fd59b-38d7-4e73-aa20-c1431a8f7434","entityType":"agent","canonicalPath":"/agent/langchain-langchain-langgraph-supervisor","slug":"langchain-langchain-langgraph-supervisor","name":"@langchain/langgraph-supervisor","description":"LangGraph Multi-Agent Supervisor","url":"git+ssh://git@github.com/langchain-ai/langgraphjs.git","homepage":"https://github.com/langchain-ai/langgraphjs#readme","source":"GITHUB_OPENCLEW","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":70,"overallRank":65,"updatedAt":"2026-06-01T00:29:03.756Z","createdAt":"2026-05-23T06:52:55.353Z","downloads":null},{"id":"d1d0f93e-b722-4791-9bbf-2532470054c2","entityType":"agent","canonicalPath":"/agent/langchain-oceanbus-langchain","slug":"langchain-oceanbus-langchain","name":"oceanbus-langchain","description":"LangChain tools for OceanBus — give your LangChain and CrewAI agents a global identity, encrypted messaging, and Yellow Pages service discovery with a single import.","url":"git+https://github.com/oceanbus/oceanbus.git","homepage":"https://github.com/oceanbus/oceanbus#readme","source":"GITHUB_OPENCLEW","protocols":["OPENCLAW"],"capabilities":["oceanbus","langchain","langchain-tools","agent-to-agent","ai-agent","communication","messaging","e2ee","structured-tool","yellow-pages","service-discovery","reputation","crewai"],"safetyScore":70,"overallRank":65,"updatedAt":"2026-06-01T00:29:02.595Z","createdAt":"2026-05-23T06:52:54.240Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/github_openclew","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}