Skip to content

feat(sdk): add list_sessions to Python SDK#34

Merged
xe-nvdk merged 1 commit into
mainfrom
feat/sdk-list-sessions
Feb 8, 2026
Merged

feat(sdk): add list_sessions to Python SDK#34
xe-nvdk merged 1 commit into
mainfrom
feat/sdk-list-sessions

Conversation

@xe-nvdk

@xe-nvdk xe-nvdk commented Feb 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds list_sessions(agent_id=None) to both sync (Memtrace) and async (AsyncMemtrace) clients
  • New SessionList model (sessions + count) exported from the package
  • Updates telegram_support.py example to use mt.list_sessions() instead of raw mt._client.get()

Closes #32

Test plan

  • 66/66 tests pass (cd sdks/python && python -m pytest tests/ -v)
  • from memtrace import Memtrace, SessionList imports cleanly
  • No raw _client.get calls remain in telegram_support.py

Closes #32. Adds list_sessions(agent_id=None) to both sync and async
clients, returning a SessionList model. Updates the telegram_support
example to use the new method instead of raw HTTP calls.
@xe-nvdk xe-nvdk merged commit 8477aca into main Feb 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(sdk): add list_sessions to Python SDK

1 participant