Haive Core OverviewΒΆ
Welcome to haive-core, the foundation of the Haive AI Agent Framework! π
Note
Looking for other Haive packages? The complete framework documentation will be available at the Haive root documentation.
The brain of Haive - manages agent execution, LLM integration, and state management.
Explore Engine β
Powerful graph-based workflow orchestration with LangGraph integration.
View Graphs β
Type-safe state management with Pydantic schemas and state persistence.
Schema Docs β
Rich tool ecosystem for agent capabilities - calculators, web search, and more.
Browse Tools β
Quick Start πββοΈΒΆ
# Install haive-core
pip install haive-core
# Or with Poetry (recommended)
poetry add haive-core
from haive.core.engine import AugLLMConfig
from haive.core.schema import StateSchema
# Configure your LLM
config = AugLLMConfig(
model="gpt-4",
temperature=0.7
)
# Define your state
class MyState(StateSchema):
messages: list[str]
context: dict
from haive.core.graph import DynamicGraph
from haive.core.tools import CalculatorTool
# Build complex workflows
graph = DynamicGraph()
graph.add_node("process", process_node)
graph.add_tool(CalculatorTool())
Core Components π―ΒΆ
AugLLMConfig
BaseAgent
ToolEngine
ValidationEngine
DynamicGraph
StateGraph
GraphNode
ValidationNode
MetaStateSchema
MessagesState
ToolMessage
Architecture Overview ποΈΒΆ
graph TB A[Application Layer] --> B[haive-core] B --> C[Engine] B --> D[Graph] B --> E[Schema] B --> F[Tools] C --> G[LLM Integration] C --> H[Tool Management] D --> I[Workflow Orchestration] D --> J[State Management] E --> K[Type Safety] E --> L[Persistence] F --> M[Built-in Tools] F --> N[Custom Tools] style B fill:#2563eb,stroke:#1d4ed8,color:#fff style C fill:#60a5fa,stroke:#3b82f6 style D fill:#60a5fa,stroke:#3b82f6 style E fill:#60a5fa,stroke:#3b82f6 style F fill:#60a5fa,stroke:#3b82f6
Key Features β¨ΒΆ
Automatic state saving and recovery with multiple backend support (PostgreSQL, Redis, File).
Works with OpenAI, Anthropic, Google, AWS Bedrock, and more LLM providers.
Build complex agent workflows with visual graph representation and debugging.
Full Pydantic integration for type-safe state management and validation.
Clean separation of concerns with pluggable components and extensions.
Optimized for production use with async support and efficient state handling.
Integration Examples πΒΆ
from haive.core.engine import AugLLMConfig
from haive.agents import ReactAgent
# Core provides the foundation
config = AugLLMConfig(temperature=0.7)
# Agents build on top
agent = ReactAgent(
name="assistant",
engine=config
)
from haive.core.tools import BaseTool
from haive.tools import WebSearchTool
# Core defines the interface
class MyTool(BaseTool):
def __call__(self, query: str) -> str:
return f"Processed: {query}"
from haive.core.schema import StateSchema
from haive.dataflow import StreamProcessor
# Core schemas work with dataflow
class StreamState(StateSchema):
buffer: list[str]
processed: int
Resources πΒΆ
Complete API documentation with examples
Step-by-step guides and examples
Join discussions and get help
Need Help? π€ΒΆ
π Check our tutorials/index for step-by-step guides
π Found a bug? Report it on GitHub
π‘ Have a feature request? Start a discussion
π§ Contact us at support@haive.ai