fleet-memory/memora-clients/python
Nicolò Boschi c82fff949b add profiles
2025-11-13 13:22:27 +01:00
..
api add profiles 2025-11-13 13:22:27 +01:00
models add profiles 2025-11-13 13:22:27 +01:00
.gitignore add profiles 2025-11-13 13:22:27 +01:00
__init__.py add profiles 2025-11-13 13:22:27 +01:00
client.py add profiles 2025-11-13 13:22:27 +01:00
errors.py add profiles 2025-11-13 13:22:27 +01:00
pyproject.toml add profiles 2025-11-13 13:22:27 +01:00
README.md add profiles 2025-11-13 13:22:27 +01:00
types.py add profiles 2025-11-13 13:22:27 +01:00

memora-client

Python client for Memora - Semantic memory system with personality-driven thinking.

Auto-generated from OpenAPI spec - provides type-safe access to all Memora API endpoints.

Installation

pip install memora-client

Quick Start

from agent_memory_api_client import Client
from agent_memory_api_client.api.memory_storage import put_api_put_post
from agent_memory_api_client.api.reasoning import think_api_think_post

client = Client(base_url="http://localhost:8000")

# Store memory
put_api_put_post.sync(
    client=client,
    body={
        "agent_id": "user123",
        "content": "Alice loves machine learning"
    }
)

# Think (generate answer with personality)
response = think_api_think_post.sync(
    client=client,
    body={
        "agent_id": "user123",
        "query": "What does Alice think about AI?",
        "thinking_budget": 50
    }
)
print(response.text)

Async Support

from agent_memory_api_client import Client
from agent_memory_api_client.api.reasoning import think_api_think_post

async with Client(base_url="http://localhost:8000") as client:
    response = await think_api_think_post.asyncio(
        client=client,
        body={
            "agent_id": "user123",
            "query": "What does Alice think about AI?"
        }
    )
    print(response.text)

API Modules

This client provides access to:

  • memory_storage - Store and retrieve facts
  • search - Semantic and temporal search
  • reasoning - Personality-driven thinking
  • visualization - Memory graphs and statistics
  • management - Agent profiles and configuration
  • documents - Document tracking

See auto-generated code for full API surface and type hints.

Development

Auto-generated from openapi.json. See RELEASE.md for regeneration instructions.