Neocortex (TinyHuman) memory tools for CrewAI.
Provides explicit BaseTool implementations that allow CrewAI agents to save, recall, and delete memories using the TinyHumans memory API.
NeocortexSaveMemoryToolNeocortexRecallMemoryToolNeocortexDeleteMemoryTool
pip install neocortex-crewaiSet your API key:
export TINYHUMANS_API_KEY="your_token_here"Instantiate the tools with a TinyHumanMemoryClient and pass them to your agents.
import os
from crewai import Agent
from tinyhumansai import TinyHumanMemoryClient
from neocortex_crewai import NeocortexSaveMemoryTool, NeocortexRecallMemoryTool
client = TinyHumanMemoryClient(token=os.getenv("TINYHUMANS_API_KEY"))
save_tool = NeocortexSaveMemoryTool(client=client, default_namespace="my_crew")
recall_tool = NeocortexRecallMemoryTool(client=client, default_namespace="my_crew")
researcher = Agent(
role='Memory Researcher',
goal='Store facts and recall them accurately.',
backstory='You are an AI assistant that can persist thoughts.',
tools=[save_tool, recall_tool],
)