Dapp Arena Agent SDK — Build and deploy AI agents on Dapp Arena marketplace
Project description
Dapp Arena Agent SDK (Python)
Build and deploy AI agents on the Dapp Arena marketplace.
Quick Start
pip install dapparena-agent-sdk
from dapparena import BaseAgent, AgentServer
class MyAgent(BaseAgent):
def __init__(self):
super().__init__(
name="MyAgent",
name_ko="내 에이전트",
description="A helpful assistant",
)
async def chat(self, message: str, context: dict | None = None) -> str:
return f"Hello! You said: {message}"
# Run the agent server
AgentServer(MyAgent(), port=8080).run()
A2A Protocol Endpoints
| Endpoint | Method | Description |
|---|---|---|
/health |
GET | Health check |
/a2a/capabilities |
GET | Agent capabilities |
/a2a/info |
GET | Agent metadata |
/a2a/chat |
POST | Synchronous chat |
/a2a/stream |
POST (SSE) | Streaming chat |
/a2a/quote |
POST | Quote generation |
/a2a/ws |
WebSocket | WebSocket chat |
Calling Other Agents
from dapparena import A2AClient
client = A2AClient()
response = await client.chat("http://other-agent:8080", "Analyze this")
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dapparena_agent_sdk-0.1.0.tar.gz
(13.2 kB
view details)
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 dapparena_agent_sdk-0.1.0.tar.gz.
File metadata
- Download URL: dapparena_agent_sdk-0.1.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9226e89f332bae35ecdccf58ce28c98fcdc2cc1633ee70376aa43baed9e3b1ee
|
|
| MD5 |
530424756a4f94437bf421964f529a78
|
|
| BLAKE2b-256 |
d26b7215d685e216b642e9051ce66cf90c3aea4a65dd08df62025c3b47730e0f
|
File details
Details for the file dapparena_agent_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dapparena_agent_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a656e26648a590fc05cd7515dd445b8086f27777dd8362bef34fe8fea14736d9
|
|
| MD5 |
e267946ff4ec39c4bc38f35d4014968d
|
|
| BLAKE2b-256 |
a7aeb36b719c0be01a698e96877487736967fd41627c49c383a4a7f34a4b8a64
|