Skip to main content

Persistent memory storage for CrewAI agents using Novyx Core

Project description

novyx-crewai

PyPI version Python versions License

Persistent memory storage for CrewAI agents using Novyx Core.

Drop-in storage backend that gives your CrewAI agents persistent, semantic memory powered by Novyx RAM.

Installation

pip install novyx-crewai

Quick Start

1. Get an API Key

Sign up at novyxlabs.com to get your API key.

2. Use with CrewAI

import os
from crewai import Agent, Crew, Task
from novyx_crewai import NovyxStorage

# Create persistent storage backed by Novyx
storage = NovyxStorage(
    api_key=os.getenv("NOVYX_API_KEY"),
    memory_type="short_term",
)

# Create an agent
researcher = Agent(
    role="Researcher",
    goal="Find and summarize information",
    backstory="You are a research assistant.",
    verbose=True,
)

task = Task(
    description="Research the latest trends in AI agents.",
    expected_output="A short summary of trends.",
    agent=researcher,
)

# Build a crew with Novyx-backed memory
crew = Crew(
    agents=[researcher],
    tasks=[task],
    memory=True,
    short_term_memory=storage,
)

result = crew.kickoff()
print(result)

3. Standalone Usage

You can also use NovyxStorage directly without CrewAI:

from novyx_crewai import NovyxStorage

storage = NovyxStorage(api_key="nram_xxx")

# Save a memory
storage.save("The user prefers concise answers.", agent="researcher")

# Search memories
results = storage.search("user preferences", limit=5)
for r in results:
    print(f"[{r['score']:.2f}] {r['context']}")

# Clear all memories for this storage type
storage.reset()

API

NovyxStorage(api_key, memory_type="short_term", api_url=None)

Parameter Type Default Description
api_key str required Your Novyx API key
memory_type str "short_term" Memory type tag (e.g. short_term, long_term, entity)
api_url str None Custom API URL (defaults to Novyx production)

Methods

  • save(value, metadata=None, agent=None) -- Store a memory with optional metadata and agent tag.
  • search(query, limit=10, score_threshold=0.5) -- Search memories. Returns list[dict] with "context" and "score" keys.
  • reset() -- Delete all memories tagged with this storage's memory type.

License

MIT License - see LICENSE for details.

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

novyx_crewai-1.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

novyx_crewai-1.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file novyx_crewai-1.1.0.tar.gz.

File metadata

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

File hashes

Hashes for novyx_crewai-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d97b0d4cabd90091c94988f59f93244831649907b94db89e0f8710cb623d41dd
MD5 ce280200cc78d188977e030644044d76
BLAKE2b-256 f8a58726d9107ad345c5e9540a5bed40155c4872eb9d406ec59945bac44086b5

See more details on using hashes here.

File details

Details for the file novyx_crewai-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: novyx_crewai-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for novyx_crewai-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ccbeaff45c9c91506c53f5212e60e27c16215266bb4b11b5ac8e302d8a9efa2f
MD5 ac2a20f66a63f44e1ea543f693e0f344
BLAKE2b-256 9118b78c66ee49bc430ba51dc9978c7f509c07c4b511d1df3645d235266b4e5f

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