cool-lizard-26153
12/04/2025, 6:17 AMsession object when I pass a session ID?tall-airline-16756
12/04/2025, 6:17 AMtall-airline-16756
12/04/2025, 6:17 AMsession object by providing a session ID.
LiveKit does not expose a method to look up an in-process session object by ID via the Python SDK. The `AgentSession`/session concept is an internal runtime object tied to an agent's lifecycle and isn't retrievable from the SDK by passing a session ID.
If by "session" you mean something else (for example: a room, a participant connection, a stored session record in your own backend, or the token/connection info created when a session was started), tell me which of those you mean and I’ll suggest how to track or retrieve that data. If you want, I can also outline patterns to manage sessions yourself (e.g., store session metadata in your DB when created, map IDs to session objects in your process, or expose an API endpoint to return session state). Which option would help you most?
Sources: SDKs | livekit/livekit_composite | DeepWiki