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.0.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.0.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for novyx_crewai-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b9acc2f868312bb86a701749a1b9597fbdb240a7493113d340d72da5cc59366f
MD5 104a368dec30dfb7119af4f4ee980fd7
BLAKE2b-256 3b939cd344667e101df25a312105a33c6702b8820dd6748a6e407a72ef5b3f3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: novyx_crewai-1.0.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.11.14

File hashes

Hashes for novyx_crewai-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa6e379d85b6212436c882d21f911ddb443a885db52cae3955428e66daf0f0b4
MD5 488dd4e9e814a8545a2e29403a81c675
BLAKE2b-256 0b6ec0138e376c1cfbf034efc6144bcd771bff7a03f872004182be1a6f7ef973

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