1.8 KiB
1.8 KiB
Honcho CrewAI Integration
Build CrewAI agents with persistent memory and reasoning capabilities powered by Honcho.
Installation
pip install honcho-crewai
Quick Start
from crewai import Agent, Task, Crew, Process
from crewai.memory.external.external_memory import ExternalMemory
from honcho_crewai import HonchoStorage
# Initialize Honcho storage
storage = HonchoStorage(user_id="user-123")
external_memory = ExternalMemory(storage=storage)
# Create agent with memory
agent = Agent(
role="AI Assistant",
goal="Help users with persistent memory",
backstory="You remember past conversations.",
)
# Create crew with external memory
crew = Crew(
agents=[agent],
tasks=[task],
external_memory=external_memory
)
Features
- Automatic Memory: CrewAI agents automatically store and retrieve conversation context
- Semantic Search: Find relevant past messages using vector similarity
- Logical Reasoning: Query what the system knows about users via the Dialectic API
- Multi-Agent Support: Give each agent distinct memory and identity
- Tools Integration:
HonchoGetContextTool,HonchoDialecticTool, andHonchoSearchToolfor explicit memory control
Documentation
For comprehensive guides, examples, and API reference, visit: https://docs.honcho.dev/v3/integrations/crewai
Examples
Check out complete examples in the GitHub repository.
License
AGPL-3.0-or-later
Support
- Report issues: GitHub Issues
- Documentation: docs.honcho.dev
- Website: honcho.dev