Skip to main content

Middleware integrations

还没翻译译自英文(docs.langchain.com)本页 12 段都还没译

Browse available middleware for different providers or contribute your own to the ecosystem. Learn more about how middleware works in the middleware overview and how to use middleware with Deep Agents in the Deep Agents docs.

Share your middleware

Middleware enables context engineering, harness customization, and runtime safety controls. It is a useful extension point in LangChain and we love highlighting what the community builds with it:

Add an official integration

Follow the contributing guide to build and publish a middleware package.

Share a community middleware

Open a PR to the docs repo to add your middleware to the table below.

Official integrations

ProviderMiddleware availableSourceDownloads
AWS middlewarePrompt cachinglangchain-ai/langchain-awsDownloads per month
BrydgeMiddlewareSupervises an agent's tool calls with BRYDGE and checks the destination system's own records to report whether each action happened as permitted.contactkontey-dotcom/langchain-brydgeDownloads per month
RecallMiddlewareLong-term memory for create_agent agents: adds what Recall learned about the user to the system prompt and records each exchange.recallmem/recallDownloads per month
RecallChatMessageHistoryChat message history stored in a Recall session, so Recall also learns about the user from it.recallmem/recallDownloads per month
AnthropicPrompt cachinglangchain-ai/langchainjsN/A

Community integrations

Note

The community maintains these middleware integrations. They are contributed on an open-source basis and are not managed or maintained by LangChain.

MiddlewareDescriptionSource
langchain-task-steeringImplicit state-machine middleware for ordered task pipelines with per-task tool scoping, dynamic prompt injection, and composable completion validation.edvinhallvaxhiu/langchain-task-steering
Nuggets AuthorityPre-execution authority enforcement for tool calls. Verifies a scoped, signed delegation before each tool runs, fails closed on deny, and emits an independently verifiable cryptographic proof of every decision.NuggetsLtd/langchain-nuggets

Have a middleware to share? Open a PR to add it here.