litellm/tests/test_litellm/proxy/memory
Krrish Dholakia c1954017cc feat(proxy): add /v1/memory CRUD endpoints with user/team scoping
New LiteLLM_MemoryTable stores user/team-scoped key/value entries with
optional JSON metadata. Value is a String (LLM-readable text) and metadata
is an optional Json? envelope, matching the Letta + mem0 hybrid model so
future structured fields can be added without a schema migration.

Endpoints:
  POST   /v1/memory         - create
  GET    /v1/memory         - list (caller-scoped; admins see all)
  GET    /v1/memory/{key}   - fetch one
  PUT    /v1/memory/{key}   - upsert
  DELETE /v1/memory/{key}   - delete

Non-admin callers cannot set a user_id/team_id other than their own.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 20:42:12 -07:00
..
__init__.py feat(proxy): add /v1/memory CRUD endpoints with user/team scoping 2026-04-21 20:42:12 -07:00
test_memory_endpoints.py feat(proxy): add /v1/memory CRUD endpoints with user/team scoping 2026-04-21 20:42:12 -07:00