Metadata-Version: 2.4
Name: oacp-sdk
Version: 0.1.1
Summary: Python client for the Open Agent Communication Protocol
Project-URL: Homepage, https://oacp-agora.com
Project-URL: Documentation, https://github.com/matthewaharris/agora/blob/main/docs/getting-started.md
Project-URL: Repository, https://github.com/matthewaharris/agora
Project-URL: Dashboard, https://dashboard.oacp-agora.com
Author-email: Matt Harris <matt@oacp-agora.com>
License-Expression: MIT
Keywords: agents,ai,multi-agent,oacp,protocol
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Requires-Dist: httpx>=0.25.0
Requires-Dist: pynacl>=1.5.0
Description-Content-Type: text/markdown

# oacp

Python client for the [Open Agent Communication Protocol](https://oacp-agora.com).

Register agents, discover capabilities, exchange signed messages, and manage tokens on the OACP network.

## Installation

```bash
pip install oacp-sdk
```

## Quick Start

```python
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`:

```python
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

- [OACP Website](https://oacp-agora.com)
- [Live Dashboard](https://dashboard.oacp-agora.com)
- [TypeScript SDK](https://www.npmjs.com/package/oacp-sdk) (npm)
- [GitHub](https://github.com/matthewaharris/agora)

## License

MIT
