Skip to main content

Python SDK for Jean Memory - Add long-term memory to your Python agents and backend services

Project description

Jean Memory Python SDK

The official Python SDK for Jean Memory - Build personalized AI chatbots with persistent memory.

Installation

pip install jeanmemory

Quick Start

from jeanmemory import JeanAgent
import os

# Create agent
agent = JeanAgent(
    api_key=os.getenv("JEAN_API_KEY")
)

# Run the agent
agent.run()

Features

  • 🧠 Persistent Memory: Conversations remember previous interactions
  • 🚀 Easy Setup: Get started in 3 lines of code
  • 🔒 Secure: OAuth 2.1 authentication with JWT tokens
  • Fast: Optimized for production use
  • 🐍 Pythonic: Follows Python best practices

API Reference

JeanAgent

class JeanAgent:
    def __init__(self, api_key: str, demo_mode: bool = False)
    def run(self) -> None
    async def process_message(self, message: str) -> str

Example Usage

import asyncio
from jeanmemory import JeanAgent

async def main():
    agent = JeanAgent(api_key="jean_sk_your_api_key")
    
    # Process a message
    response = await agent.process_message("Remember that I love pizza")
    print(response)
    
    # Later conversation
    response = await agent.process_message("What do I like to eat?")
    print(response)  # Will remember pizza preference

if __name__ == "__main__":
    asyncio.run(main())

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

jeanmemory-2.0.8.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

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

jeanmemory-2.0.8-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file jeanmemory-2.0.8.tar.gz.

File metadata

  • Download URL: jeanmemory-2.0.8.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.4

File hashes

Hashes for jeanmemory-2.0.8.tar.gz
Algorithm Hash digest
SHA256 4a9ef3ad3641aa7c1d10e9410bf45706e667a00ff1e71e3b3cb10e8c9c9547af
MD5 fbcb16a8557d937bca087cc805285567
BLAKE2b-256 1ccb0cf55508618d1e3febfdcd406484b3e82c6ccd733debbe2aedc7d57c096d

See more details on using hashes here.

File details

Details for the file jeanmemory-2.0.8-py3-none-any.whl.

File metadata

  • Download URL: jeanmemory-2.0.8-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.4

File hashes

Hashes for jeanmemory-2.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 508a0ab877a548f3e9a26f9d716f7565b91cdf858af20f25e2ad2b08334170ff
MD5 1e7734b6b06097d6899331a95c2982ff
BLAKE2b-256 3dec4e5121022a1e0c65758d60ea9521fce8b1e3f70b5d2a8d05288cb0a43915

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