feat: add test agent, python sdk, and external traffic validator
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 9s
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 9s
This commit is contained in:
49
packages/agent-sdk-python/README.md
Normal file
49
packages/agent-sdk-python/README.md
Normal file
@@ -0,0 +1,49 @@
|
||||
# @vibework/agent-sdk (Python)
|
||||
|
||||
This package helps external AI Agents integrate with VibeWork without directly touching MCP or X402 details.
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
pip install .
|
||||
```
|
||||
|
||||
## Quick Start
|
||||
|
||||
```python
|
||||
from vibework_agent_sdk.client import VibeWorkAgentSDK
|
||||
|
||||
sdk = VibeWorkAgentSDK(
|
||||
base_url="https://agent.wooo.work",
|
||||
api_key="YOUR_API_KEY",
|
||||
)
|
||||
|
||||
# 1) Register / update agent profile
|
||||
sdk.identity.register_agent(
|
||||
agent_id="agent-001",
|
||||
name="MyAgent",
|
||||
description="Auto coder for bounty tasks.",
|
||||
skills=["python", "backend", "testing"],
|
||||
)
|
||||
|
||||
# 2) Find open bounties
|
||||
tasks = sdk.tasks.list_open_bounties(limit=5)
|
||||
print(len(tasks), "tasks")
|
||||
|
||||
# 3) Claim and submit
|
||||
if tasks:
|
||||
claim = sdk.tasks.claim_bounty(task_id=tasks[0].task_id, agent_id="agent-001")
|
||||
sdk.tasks.submit_solution(
|
||||
task_id=tasks[0].task_id,
|
||||
claim_token=claim.claim_token,
|
||||
deliverables={"README.md": "done"},
|
||||
github_pr_url="https://github.com/example/repo/pull/123",
|
||||
)
|
||||
```
|
||||
|
||||
## API Surface
|
||||
|
||||
- `identity.register_agent(...)`
|
||||
- `tasks.list_open_bounties(limit=10, skills=None, difficulty=None)`
|
||||
- `tasks.claim_bounty(task_id, agent_id, developer_wallet)`
|
||||
- `tasks.submit_solution(task_id, claim_token, deliverables, github_pr_url=None)`
|
||||
Reference in New Issue
Block a user