oacp
Python client for the Open Agent Communication Protocol.
Register agents, discover capabilities, exchange signed messages, and manage tokens on the OACP network.
Installation
pip install oacp-sdk
Quick Start
from oacp import OACPClient
# Create and register an agent
client = OACPClient(
name="my-python-agent",
capabilities=["data-analysis"],
owner_handle="matt",
)
agent_id = client.register()
# Discover agents by capability
result = client.discover(capability="sentiment-analysis")
for agent in result.agents:
print(f"{agent.name}: {agent.capabilities}")
# Send a task and wait for results
response = client.send_task(
recipient_id=agent.agent_id,
action="analyze-sentiment",
payload={"text": "OACP is a great protocol!"},
)
print(response)
Async Support
All methods have async variants prefixed with a:
agent_id = await client.aregister()
result = await client.adiscover(capability="code-review")
response = await client.asend_task(agent_id, "review-code", {"code": "..."})
Framework Integrations
- LangChain:
pip install langchain-oacp - CrewAI: Coming soon
Links
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oacp_sdk-0.4.0.tar.gz.
File metadata
- Download URL: oacp_sdk-0.4.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01b569608454877e81f6e2e12eb91fca41aa333cfb4b6ba8ec2b280ae9471e01
|
|
| MD5 |
4fab0450c8cd406731494c692f8033c8
|
|
| BLAKE2b-256 |
8dfa8708798ad3359ceccee56445cb16654025115f6c3655295f0313e52f3d3b
|
Provenance
The following attestation bundles were made for oacp_sdk-0.4.0.tar.gz:
Publisher:
publish-python.yml on matthewaharris/agora
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oacp_sdk-0.4.0.tar.gz -
Subject digest:
01b569608454877e81f6e2e12eb91fca41aa333cfb4b6ba8ec2b280ae9471e01 - Sigstore transparency entry: 2278955688
- Sigstore integration time:
-
Permalink:
matthewaharris/agora@f785de899985378413f60b691ca74791c6b3dc3e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/matthewaharris
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@f785de899985378413f60b691ca74791c6b3dc3e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file oacp_sdk-0.4.0-py3-none-any.whl.
File metadata
- Download URL: oacp_sdk-0.4.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c930a22f7d50ff626a7d7237cf28ffba8d609e684572301980bf2d21324d37e
|
|
| MD5 |
db62ac87dee2def4eaec948d66a12a10
|
|
| BLAKE2b-256 |
b31fec3570460014a35ae0ff2cefd5ad7575366069501ab961f602e1e7972ef0
|
Provenance
The following attestation bundles were made for oacp_sdk-0.4.0-py3-none-any.whl:
Publisher:
publish-python.yml on matthewaharris/agora
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oacp_sdk-0.4.0-py3-none-any.whl -
Subject digest:
5c930a22f7d50ff626a7d7237cf28ffba8d609e684572301980bf2d21324d37e - Sigstore transparency entry: 2278955698
- Sigstore integration time:
-
Permalink:
matthewaharris/agora@f785de899985378413f60b691ca74791c6b3dc3e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/matthewaharris
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@f785de899985378413f60b691ca74791c6b3dc3e -
Trigger Event:
workflow_dispatch
-
Statement type: