AbstractAbstractcreateCreates a new session.
The name of the app.
The id of the user.
Optionalstate: Record<string, any>The initial state of the session.
OptionalsessionId: stringThe client-provided id of the session. If not provided, a generated ID will be used.
The newly created session instance.
AbstractgetGets a session.
The name of the app.
The id of the user.
The id of the session.
Optionalconfig: GetSessionConfigOptional config for getting the session.
The session or undefined if not found.
AbstractlistLists all the sessions.
The name of the app.
The id of the user.
The response containing the list of sessions.
AbstractdeleteAbstractendEnds a session and returns its final state. This is typically called when a session is complete and should be stored in long-term memory before potential cleanup.
The name of the app.
The id of the user.
The id of the session.
The session with its final state, or undefined if not found.
Protectedupdate
Base class for session services. The service provides a set of methods for managing sessions and events.