mirror of
https://github.com/hanzoai/agent.git
synced 2026-09-11 21:08:51 +00:00
hanzoai/agents carried the reconciled Go, TypeScript and Python SDKs: memory in Base with one record schema across all three, scope ids resolved the way the control plane resolves them, /v1 paths, one address per vector operation, agents that start under Express 5, and suites that run (Go green, 92 TypeScript, 527 Python). They come home here. The Go module is github.com/hanzoai/agent/sdk/go, because the path has to name the repository it is fetched from. The TypeScript manifest names its versions directly and keeps npm's lockfile; this repo is not a pnpm workspace. Versions are 0.2.10. Co-authored-by: Hanzo Dev <[email protected]>
Hanzo Agents Python SDK
The Hanzo Agents SDK provides a production-ready Python interface for registering agents, executing workflows, and integrating with the Hanzo Agents control plane.
Installation
pip install hanzo-agents
To work on the SDK locally:
git clone https://github.com/hanzoai/agent.git
cd hanzo-agents/sdk/python
python -m pip install -e .[dev]
Quick Start
from hanzo-agents import Agent
agent = Agent(
node_id="example-agent",
hanzo_agents_server="http://localhost:8080",
dev_mode=True,
)
@agent.reasoner()
async def summarize(text: str) -> dict:
result = await agent.ai(
prompt=f"Summarize: {text}",
response_model={"summary": "string", "tone": "string"},
)
return result
if __name__ == "__main__":
agent.serve(port=8001)
See docs/DEVELOPMENT.md for instructions on wiring agents to the control plane.
Testing
pytest
To run coverage locally:
pytest --cov=hanzo-agents --cov-report=term-missing
License
Distributed under the Apache 2.0 License. See the project root LICENSE for details.