Skip to content

Supermemory-Cartesia SDK#744

Open
sreedharsreeram wants to merge 1 commit intomainfrom
cartesia-supermemory
Open

Supermemory-Cartesia SDK#744
sreedharsreeram wants to merge 1 commit intomainfrom
cartesia-supermemory

Conversation

@sreedharsreeram
Copy link

@sreedharsreeram sreedharsreeram commented Feb 17, 2026

TL;DR

Added Python SDK for integrating Supermemory with Cartesia Line voice agents, enabling persistent memory capabilities.

What changed?

Created a new Python SDK package (supermemory_cartesia) that provides:

  • SupermemoryCartesiaAgent wrapper class that enhances Cartesia Line agents with memory capabilities
  • Memory retrieval and storage functionality that integrates with the Supermemory API
  • Utility functions for memory formatting, deduplication, and time formatting
  • Custom exception classes for error handling
  • Comprehensive documentation and type hints

The implementation includes:

  • Memory enrichment for user queries
  • Automatic storage of conversation history
  • Configurable memory retrieval modes (profile, query, full)
  • Background processing to avoid blocking the main conversation flow

How to test?

from supermemory_cartesia import SupermemoryCartesiaAgent
from line.llm_agent import LlmAgent, LlmConfig
import os

# Create base LLM agent
base_agent = LlmAgent(
    model="gemini/gemini-2.5-flash-preview-09-2025",
    config=LlmConfig(
        system_prompt="You are a helpful assistant.",
        introduction="Hello!"
    )
)

# Wrap with Supermemory
memory_agent = SupermemoryCartesiaAgent(
    agent=base_agent,
    api_key=os.getenv("SUPERMEMORY_API_KEY"),
    user_id="user-123",
)

# Use memory_agent in your Cartesia Line application

Why make this change?

This SDK enables Cartesia Line voice agents to maintain persistent memory across conversations, enhancing user experience by:

  1. Providing contextual awareness of past interactions
  2. Remembering user preferences and important information
  3. Reducing repetition in conversations
  4. Creating more personalized and natural voice interactions

The integration is designed to be lightweight and non-blocking, ensuring that memory operations don't impact the responsiveness of voice interactions.

@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
🔵 In progress
View logs
supermemory-mcp b5add5a Feb 17 2026, 03:12 PM

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 17, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
supermemory-app d2d0d8d Commit Preview URL

Branch Preview URL
Feb 17 2026, 11:02 PM

Copy link
Author


How to use the Graphite Merge Queue

Add the label Main to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@sreedharsreeram sreedharsreeram force-pushed the cartesia-supermemory branch 2 times, most recently from de3ca2a to 22aeaaf Compare February 17, 2026 19:39
@sreedharsreeram sreedharsreeram changed the title initial commit Supermemory-Cartesia SDK Feb 17, 2026
@sreedharsreeram sreedharsreeram marked this pull request as ready for review February 17, 2026 22:55
@graphite-app graphite-app bot requested a review from Dhravya February 17, 2026 22:55
Comment on lines 437 to 441

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments