Skip to content

Agent Reference

API reference for the hanzo-agent framework.

Overview

hanzo-agent provides a multi-agent SDK with:

  • OpenAI-compatible API
  • Multi-agent orchestration
  • Tool use and guardrails
  • Streaming and tracing

Documentation

Topic Description
Getting Started Introduction to agents
Running Agents How to run agents
Agent Config Configuration options
Tools Tool integration
Guardrails Safety constraints
Multi-Agent Orchestrating multiple agents
Handoffs Agent handoff patterns
Streaming Streaming responses
Tracing Debugging and tracing

Quick Start

from hanzo_agent import Agent, Runner

agent = Agent(
    name="assistant",
    instructions="You are a helpful assistant.",
)

result = await Runner.run(agent, "Hello!")
print(result.final_output)

See Also