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ΒΆ
- agents.base
- agents.chain
- agents.conversation
- agents.discovery
- agents.document
- agents.document_loader
- agents.document_modifiers
- agents.document_processing
- agents.dynamic_supervisor
- agents.experiments
- agents.long_term_memory
- agents.ltm
- agents.memory
- agents.memory_reorganized
- agents.memory_v2
- agents.multi
- agents.patterns
- agents.planning
- agents.planning_v2
- agents.rag
- agents.react
- agents.react_class
- agents.reasoning_and_critique
- agents.reflection
- agents.research
- agents.self_healing_code
- agents.sequential
- agents.simple
- agents.structured
- agents.structured_output
- agents.supervisor
- agents.task_analysis
- agents.utils
- agents.wiki_writer