langchain-architecture

Design LLM applications with LangChain 1.x and LangGraph agents, memory, and tools.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill langchain-architecture-sanketadlak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langchain-architecture
Source: https://github.com/SanketAdlak/PDMProjectDesign/tree/main/.agents/skills/langchain-architecture
Command: npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill langchain-architecture-sanketadlak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building production LLM applications requires coordinating agents, state, memory, tools, and observability across many moving parts, and ad-hoc implementations quickly become fragile and hard to maintain. ## Core Features & Use Cases - LangGraph Agent Patterns: Implement ReAct, plan-and-execute, multi-agent supervisor, and structured tool-calling agents with typed state and checkpointing. - Memory & State Management: Use MemorySaver or PostgresSaver checkpointers, token-based memory, and vector store memory for persistent conversations. - RAG & Document Pipelines: Build retrieval-augmented generation workflows with Voyage AI embeddings, Pinecone vector stores, and LangSmith tracing. - Use Case: You need a customer support agent that searches an internal database, performs calculations, remembers prior conversations per user, and streams responses—this Skill provides the complete LangGraph architecture with checkpointers and thread-based memory. ## Quick Start Ask the AI to create a LangGraph ReAct agent with tools, memory checkpointing, and a thread ID for a sample user query.

Frequently Asked Questions about langchain-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a ReAct agent with LangGraph?

Use create_react_agent from langgraph.prebuilt with an LLM like ChatAnthropic and a list of tools defined via the @tool decorator. Pass a checkpointer such as MemorySaver to enable persistent memory across invocations using thread IDs.

How to add persistent memory to a LangChain agent?

Attach a checkpointer to the agent: MemorySaver for development or PostgresSaver for production. Each invocation uses a configurable thread_id, so conversations with the same thread ID retain full message history.

LangGraph vs plain LangChain chains for agents?

LangGraph provides explicit typed state, durable execution, human-in-the-loop inspection, and checkpointing, making it the standard for agents. Plain chains suit simple linear prompt-to-response flows without branching or state.

Does LangChain support streaming responses?

Yes, set streaming=True on the chat model and iterate with astream for token chunks, or use astream_events on agents to receive granular events like on_chat_model_stream and on_tool_start during execution.

How do I trace LangChain applications with LangSmith?

Set LANGCHAIN_TRACING_V2=true along with your LANGCHAIN_API_KEY and project name as environment variables. All LangChain and LangGraph operations are then automatically traced with token usage, latency, and error tracking.

When should I not use a multi-agent architecture?

Avoid multi-agent supervisor patterns when a single agent with well-scoped tools can complete the task, since routing between agents adds latency and complexity. Reserve it for genuinely distinct specializations like research, writing, and review.