haive.agents¶
Haive Agents Module - Main exports.
This module provides various agent implementations for the Haive framework, including base agents, multi-agents, reactive agents, and specialized agents for different use cases like RAG, planning, memory, and reasoning.
- Key Components:
Base: Core agent abstractions and foundational classes
Simple: Basic agent implementations for common use cases
React: Reactive agents with reasoning loops and tool usage
Multi: Multi-agent coordination and orchestration
RAG: Retrieval-Augmented Generation agents
Planning: Planning and execution agents
Memory: Memory-enabled agents with long-term context
Conversation: Conversational agent patterns
Supervisor: Agent supervision and coordination patterns
The agents are designed to be modular, extensible, and optimized for various AI workflows and use cases within the Haive ecosystem.
Examples
Basic agent usage:
from haive.agents import SimpleAgent
from haive.core.engine.aug_llm import AugLLMConfig
agent = SimpleAgent(
name="helper",
engine=AugLLMConfig(model="gpt-4")
)
result = agent.run("Hello world")
Multi-agent coordination:
from haive.agents import MultiAgent, SimpleAgent, ReactAgent
coordinator = MultiAgent([
SimpleAgent(name="planner"),
ReactAgent(name="executor", tools=[...])
], mode="sequential")
RAG agent setup:
from haive.agents.rag import BaseRAGAgent
from haive.core.models import VectorStoreConfig
rag_agent = BaseRAGAgent(
vectorstore_config=VectorStoreConfig(...)
)
Submodules¶
- haive.agents.base
- haive.agents.chain
- haive.agents.conversation
- haive.agents.discovery
- haive.agents.document_loader
- haive.agents.document_modifiers
- haive.agents.document_processing
- haive.agents.dynamic_supervisor
- haive.agents.graphs
- haive.agents.long_term_memory
- haive.agents.memory
- haive.agents.multi
- haive.agents.planning
- haive.agents.rag
- haive.agents.react
- haive.agents.reasoning_and_critique
- haive.agents.research
- haive.agents.simple
- haive.agents.structured_output
- haive.agents.supervisor
- haive.agents.task_analysis
- haive.agents.utils