SKILL16.3K installs1.3K

Langchain Middleware

INVOKE THIS SKILL when you need human-in-the-loop approval, custom middleware, or structured output. Covers HumanInTheLoopMiddleware for human approval of dangerous tool calls, creating custom middleware with hooks, Command resume patterns, and structured output with Pydantic/Zod.

Type
Skill
Author
langchain-ai
Category
AI Agents
GitHub stars
1.3K
Installs
16.3K
Last updated
October 29, 2026

Install

npx skills add https://github.com/langchain-ai/langchain-skills --skill langchain-middleware

Use cases


Frequently Asked Questions

What is HumanInTheLoopMiddleware for?

It pauses for human approval before dangerous tool calls are executed.

Can I resume an agent after approval?

Yes, the skill covers Command resume patterns.

Which schema libraries are supported for structured output?

Pydantic and Zod.


About this skill

Covers human-in-the-loop approval, custom middleware, and structured output in LangChain. It includes HumanInTheLoopMiddleware for approving dangerous tool calls, middleware hooks, Command resume patterns, and structured output with Pydantic or Zod. Invoke it when an agent needs a human gate or typed responses.

Summary written with AI assistance from the project's public description.


Categories


More from langchain-ai


Similar Skills