Langchain Fundamentals
Create LangChain agents with create_agent, define tools, and use middleware for human-in-the-loop and error handling.
- Type
- Skill
- Author
- langchain-ai
- Category
- AI Agents
- GitHub stars
- 1.3K
- Installs
- 17.5K
- Last updated
- October 29, 2026
Install
npx skills add https://github.com/langchain-ai/langchain-skills --skill langchain-fundamentalsUse cases
- Create a LangChain agent with create_agent and wire up its tool set.
- Add middleware for human-in-the-loop approval before an agent acts.
- Add error-handling middleware to a LangChain agent loop.
Frequently Asked Questions
What is the entry point for building an agent here?
The skill covers creating agents with create_agent.
Does it cover tool definitions?
Yes, defining tools is part of the fundamentals it covers.
How is human-in-the-loop handled?
Through middleware, which the skill also uses for error handling.
About this skill
Covers creating LangChain agents with create_agent, defining tools, and using middleware for human-in-the-loop and error handling. It is the starting point for building an agent in LangChain. Useful when you need the agent loop and tool wiring rather than a specific integration.
Summary written with AI assistance from the project's public description.
More from langchain-ai
Deep Agents Memory
INVOKE THIS SKILL when your Deep Agent needs memory, persistence, or filesystem access. Covers StateBackend (ephemeral), StoreBackend (persistent),...
by langchain-ai
Langgraph Fundamentals
INVOKE THIS SKILL when writing ANY LangGraph code. Covers StateGraph, state schemas, nodes, edges, Command, Send, invoke, streaming, and error hand...
by langchain-ai
Langgraph Persistence
INVOKE THIS SKILL when your LangGraph needs to persist state, remember conversations, travel through history, or configure subgraph checkpointer sc...
by langchain-ai
Langchain Rag
INVOKE THIS SKILL when building ANY retrieval-augmented generation (RAG) system. Covers document loaders, RecursiveCharacterTextSplitter, embedding...
by langchain-ai
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh