Skip to main content

Python SDK for Medjat memory API

Project description

Medjat Python SDK

Python client for the Medjat memory API.

Install

pip install medjat-sdk

30-Second Quickstart

export MEDJAT_API_KEY="your_api_key"
from medjat_sdk import MedjatClient

client = MedjatClient(api_key="your_api_key")

client.memory.store(
    agent_id="agent-1",
    session_id="session-1",
    user_id="user-1",
    content="User prefers concise TypeScript examples and JSON responses.",
)

recall = client.memory.recall(
    query="How should I format examples for this user?",
    agent_id="agent-1",
    user_id="user-1",
    top_k=3,
)

for item in recall.items:
    print(item.content)

Quickstart

See QUICKSTART.md for a 5-minute setup.

Usage

from medjat_sdk import MedjatClient

client = MedjatClient(api_key="YOUR_API_KEY")
result = client.memory.recall(query="user preferences", agent_id="agent", user_id="user")
print(result)

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

medjat_sdk-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

medjat_sdk-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for medjat_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 93c010a57697bb48d544cd511f29a9ef7ffc0670321aaedddda2698436a7ccea
MD5 da5bf3dc06a62e0a783ec0ee5170b367
BLAKE2b-256 5c4ccf757ed60ae133730ca013afdbe380f492dc48bfc3f088ad4167f5ab27b5

See more details on using hashes here.

Provenance

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

Publisher: publish-pypi.yml on darknet-developer/Medjat

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

File details

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

File metadata

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

File hashes

Hashes for medjat_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e6a8353842a77383700d4d342dcc4589924327d9d0d8cd1ab62dadc1baef40f
MD5 890a67b84581747bc2e1e7b7c7e0d130
BLAKE2b-256 c1d3c187b99ed041b3bbf3fe467ad01c7857a669dccb61113dd0aa1a203d4217

See more details on using hashes here.

Provenance

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

Publisher: publish-pypi.yml on darknet-developer/Medjat

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