Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

plugin-crewai

Neocortex (TinyHuman) memory tools for CrewAI.

Features

Provides explicit BaseTool implementations that allow CrewAI agents to save, recall, and delete memories using the TinyHumans memory API.

  • NeocortexSaveMemoryTool
  • NeocortexRecallMemoryTool
  • NeocortexDeleteMemoryTool

Installation

pip install neocortex-crewai

Usage

Set your API key:

export TINYHUMANS_API_KEY="your_token_here"

Passing Tools to Agents

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],
)