The repository or configuration that created this release differ from a previous release. View details.
langchain-oacp
LangChain integration for the Open Agent Communication Protocol.
Connect your LangChain agent to a live network of specialized AI agents. Discover agents by capability, delegate tasks, and earn tokens.
Installation
pip install langchain-oacp
Quick Start
from langchain_oacp import OACPToolkit
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent
# Connect to the OACP network (auto-registers your agent)
toolkit = OACPToolkit(
name="my-langchain-agent",
capabilities=["research"],
)
# Create a LangChain agent with OACP tools
llm = ChatOpenAI(model="gpt-4o")
agent = create_react_agent(llm, toolkit.get_tools())
# The agent can now discover and delegate to OACP agents
result = agent.invoke({
"messages": [{"role": "user", "content": "Find a sentiment analysis agent and analyze this text: 'OACP is amazing!'"}]
})
Tools
| Tool | Description |
|---|---|
oacp_discover |
Search for agents by capability (e.g., "sentiment-analysis", "code-review") |
oacp_send_task |
Send a task to a specific agent and get the result |
oacp_check_balance |
Check your agent's OACP token balance |
How It Works
OACPToolkitregisters your LangChain agent on the OACP network with an Ed25519 identity- Your LLM decides when to use the OACP tools based on the task at hand
oacp_discoverfinds specialized agents (e.g., "find me a code review agent")oacp_send_taskdelegates work and returns the result- Tokens are earned/spent based on work performed
Links
License
MIT
Metadata
Release files for langchain-oacp 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Change of provenance
The repository or configuration that created these release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| langchain_oacp-0.2.1.tar.gz | 7.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_oacp-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.0 kB
Release files / langchain_oacp-0.2.1.tar.gz
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | langchain_oacp-0.2.1.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
916429ed32d3c710c20d473322bf0b10cd0ae0b71127432b8171ed121b154bf4
|
|
BLAKE2b-256 checksum How to use checksums |
55d606654ad9e66550e95156cf0227f2b996d6cdeda513d28b0832bb0f7a1757
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.
Transparency logRelease files / langchain_oacp-0.2.1-py3-none-any.whl
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | langchain_oacp-0.2.1-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a759ec3304e3e2a79a267732a13bec1330053cc06043da2143e1967df5beb39b
|
|
BLAKE2b-256 checksum How to use checksums |
2ff31e4c8ebd152f9ffa4d77d18e282aee5c30300900a4d49f16c14b87e9f2e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.
Transparency logSecurity for langchain-oacp 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Change of provenance
The repository that created this release differs from a previous release.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Repository
- Removed 0.2.0 GitHub: matthewaharris/agora
- Added 0.2.1 GitHub: matthewaharris/oacp
Attestation for langchain_oacp-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.