Skip to main content

Persistent memory for AI agents. LangChain & CrewAI compatible tools.

Project description

Central Intelligence — Python SDK

Persistent memory for AI agents. Works with LangChain, CrewAI, and any Python agent framework.

Install

pip install central-intelligence
# With LangChain support:
pip install central-intelligence[langchain]
# With CrewAI support:
pip install central-intelligence[crewai]

Quick Start

from central_intelligence import get_ci_tools

# Get all 5 tools ready for your agent
tools = get_ci_tools(api_key="ci_sk_...")

# Use with LangChain
from langchain.agents import initialize_agent
agent = initialize_agent(tools=tools, llm=llm)

# Use with CrewAI
from crewai import Agent
agent = Agent(role="researcher", tools=tools)

Standalone Client

from central_intelligence import CentralIntelligence

ci = CentralIntelligence(api_key="ci_sk_...", agent_id="my-agent")

# Store a memory
ci.remember("User prefers TypeScript over JavaScript")

# Search memories
results = ci.recall("programming language preferences")

# Load context for current task
context = ci.context("working on the auth system")

# Delete outdated info
ci.forget("memory-id-here")

Get an API Key

npx central-intelligence-cli signup

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

central_intelligence-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

central_intelligence-0.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file central_intelligence-0.1.0.tar.gz.

File metadata

  • Download URL: central_intelligence-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for central_intelligence-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7017ca9ed85626048b2b90c99bd5bbaf5b356381f0a6e3402ce406c4bc3795b4
MD5 31a8bb583955ec9d23077364fc44f0c6
BLAKE2b-256 7748c19cd312447baf69e9e7dc2cf3ff4bdfff0358e92cf89ceacac011ee5ad8

See more details on using hashes here.

File details

Details for the file central_intelligence-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for central_intelligence-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa8254738d53f0eed25a44a49a5883579c9b1eb9cb7fbff9e9fe59839e9c5d9e
MD5 59b329a64200ef8a6a1ff7effa35625d
BLAKE2b-256 69e71994a2edd9eb7ceddf2355b737b4aed42bff24e422ba9014311cc4977b7a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page