Welcome to haive-hapΒΆ

PyPI Version License

haive-hap is the Haive Agent Protocol - orchestration system for multi-agent workflows in the Haive ecosystem.

✨ Key Features¢

🎯 Agent Orchestration

Define and execute complex multi-agent workflows

πŸ”„ Workflow Management

Build directed graphs of agent execution with dependencies

πŸ“Š State Management

Track execution state across agent interactions

🌐 Protocol Integration

JSON-RPC 2.0 protocol for distributed agent systems

πŸ“ˆ Production Ready

Real agent execution with comprehensive error handling

⚑ Quick Start¢

Install haive-hap:

poetry add haive-hap

Create your first workflow:

from haive.hap.models import HAPGraph
from haive.hap.server.runtime import HAPRuntime
from haive.agents.simple.agent import SimpleAgent
from haive.core.engine.aug_llm import AugLLMConfig

# Create agent
agent = SimpleAgent(
    name="assistant",
    engine=AugLLMConfig(temperature=0.7)
)

# Build workflow
graph = HAPGraph()
graph.add_agent_node("step1", agent)
graph.entry_node = "step1"

# Execute
runtime = HAPRuntime(graph)
result = await runtime.run({"input": "Hello!"})
print(f"Result: {result}")

πŸ“š DocumentationΒΆ

πŸ“ Reference

πŸ” API ReferenceΒΆ

Complete API documentation with examples:

πŸ” API Reference

πŸ“Š Project InfoΒΆ

πŸ“„ Indices and TablesΒΆ