Skip to main content

Python SDK for the Progress Memory backend API

Project description

progress-memory

Python SDK for the Progress Memory backend API.

Quick start

from progress_memory import ProgressMemoryClient, ProgressMemoryConfig, AddMemoryRequest, ConversationMessage, RecallMemoryRequest

config = ProgressMemoryConfig.from_env()

async with ProgressMemoryClient(config) as client:
    await client.add_memory(
        AddMemoryRequest(
            user_id="user-1",
            agent_id="agent-1",
            messages=[
                ConversationMessage(text="What is the capital of France?", type="user"),
                ConversationMessage(text="The capital of France is Paris.", type="assistant"),
            ],
        )
    )

    memories = await client.recall_memory(
        RecallMemoryRequest(query="capital of France", user_id="user-1")
    )
    for m in memories:
        print(m.text, m.score)

Configuration

Set these environment variables:

Variable Description
PROGRESS_MEMORY_BACKEND_URL Base URL of the Progress Memory backend
PROGRESS_MEMORY_SDK_API_KEY API key (starts with pmem_d_)

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

progress_memory-0.1.0.tar.gz (22.2 kB view details)

Uploaded Source

Built Distribution

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

progress_memory-0.1.0-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: progress_memory-0.1.0.tar.gz
  • Upload date:
  • Size: 22.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for progress_memory-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5df9f2badc19e5c0d4539d320c7bfa53ee770c7b6a9837e7dafbec7619d2d12b
MD5 632a285adfec1c527a7b5994cd3c30d3
BLAKE2b-256 4ced0ca698af520481e1f1fd7af91669bd91ff7d114691dcff70424039ee0f1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for progress_memory-0.1.0.tar.gz:

Publisher: publish-memory-python.yaml on telerik/AgentClarity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: progress_memory-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for progress_memory-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af6fc6eae5e27d683b6a2d343229fd6cd39627699872541ca15febbc26a21dc2
MD5 31d13c5b71f33468a306e4459672c381
BLAKE2b-256 9187c266c742e5c7e5e58c803a31a36c16c677f043e655379298cffb412cefc4

See more details on using hashes here.

Provenance

The following attestation bundles were made for progress_memory-0.1.0-py3-none-any.whl:

Publisher: publish-memory-python.yaml on telerik/AgentClarity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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