[PR #2991] Add langchain-pop integration (Persona Object Protocol middleware) #3073

Open
opened 2026-06-05 18:21:01 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/2991
Author: @joy7758
Created: 3/8/2026
Status: 🔄 Open

Base: mainHead: integration-langchain-pop


📝 Commits (2)

  • 75f9a19 docs: add langchain-pop middleware integration
  • 7beaae4 Merge remote-tracking branch 'origin/main' into integration-langchain-pop

📊 Changes

3 files changed (+186 additions, -0 deletions)

View changed files

📝 src/docs.json (+8 -0)
📝 src/oss/python/integrations/middleware/index.mdx (+1 -0)
src/oss/python/integrations/middleware/langchain-pop.mdx (+177 -0)

📄 Description

Summary

This PR adds documentation for langchain-pop, a middleware-style toolkit that enables Persona Object Protocol (POP) integration with LangChain agents.

The package is available on PyPI:

pip install langchain-pop

Repository:

What this adds

  • A new middleware integration page for langchain-pop
  • An entry in the Python middleware integrations index
  • Redirects for underscore-to-hyphen route variants

Package capabilities

  • POP v1 canonical object loading
  • Automatic legacy pop-0.1 migration
  • Persona-aware system prompt construction
  • Boundary-aware tool filtering
  • create_pop_agent(...) integration for LangChain agents

Validation

I tested the code examples against the published package before opening this PR:

  • create_pop_agent(...) returns CompiledStateGraph
  • POPMiddleware.filter_tools(...) filters blocked tools as documented
  • Legacy pop-0.1 input migration works with the documented example shape

Notes for reviewers

  • I placed this under python/integrations/middleware/ rather than tools/ because the integration is centered on LangChain middleware behavior and runtime tool filtering.
  • The docs page avoids nonexistent APIs and uses the published langchain-pop package interface.

AI disclosure

This PR was prepared with assistance from an AI coding agent, then reviewed and validated before submission.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/2991 **Author:** [@joy7758](https://github.com/joy7758) **Created:** 3/8/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `integration-langchain-pop` --- ### 📝 Commits (2) - [`75f9a19`](https://github.com/langchain-ai/docs/commit/75f9a19f6dff3f38f285e9f494adc8f57dcc2ea6) docs: add langchain-pop middleware integration - [`7beaae4`](https://github.com/langchain-ai/docs/commit/7beaae42e293063be137aad932a47c7c1caa3164) Merge remote-tracking branch 'origin/main' into integration-langchain-pop ### 📊 Changes **3 files changed** (+186 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/docs.json` (+8 -0) 📝 `src/oss/python/integrations/middleware/index.mdx` (+1 -0) ➕ `src/oss/python/integrations/middleware/langchain-pop.mdx` (+177 -0) </details> ### 📄 Description ## Summary This PR adds documentation for `langchain-pop`, a middleware-style toolkit that enables Persona Object Protocol (POP) integration with LangChain agents. The package is available on PyPI: ```bash pip install langchain-pop ``` Repository: - https://github.com/joy7758/langchain-pop - https://pypi.org/project/langchain-pop/ ## What this adds - A new middleware integration page for `langchain-pop` - An entry in the Python middleware integrations index - Redirects for underscore-to-hyphen route variants ## Package capabilities - POP v1 canonical object loading - Automatic legacy `pop-0.1` migration - Persona-aware system prompt construction - Boundary-aware tool filtering - `create_pop_agent(...)` integration for LangChain agents ## Validation I tested the code examples against the published package before opening this PR: - `create_pop_agent(...)` returns `CompiledStateGraph` - `POPMiddleware.filter_tools(...)` filters blocked tools as documented - Legacy `pop-0.1` input migration works with the documented example shape ## Notes for reviewers - I placed this under `python/integrations/middleware/` rather than `tools/` because the integration is centered on LangChain middleware behavior and runtime tool filtering. - The docs page avoids nonexistent APIs and uses the published `langchain-pop` package interface. ## AI disclosure This PR was prepared with assistance from an AI coding agent, then reviewed and validated before submission. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 18:21:01 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#3073