GeezerVison is showing adk.dev — BaseSessionService | ADK for TypeScript: API Reference - v2.5.0
Class BaseSessionServiceAbstract
Base class for session services.
The service provides a set of methods for managing sessions and events.
Constructors
Methods
appendEvent
-
Appends an event to a session.
Returns Promise<Event>
A promise that resolves to the event that was appended.
AbstractcreateSession
-
Returns Promise<Session>
A promise that resolves to the newly created session instance.
AbstractdeleteSession
-
Returns Promise<void>
A promise that resolves when the session is deleted.
getOrCreateSession
-
Gets a session or creates one if it doesn't exist.
Returns Promise<Session>
A promise that resolves to the session instance.
AbstractgetSession
-
Returns Promise<Session | undefined>
A promise that resolves to the session instance or undefined if not
found.
AbstractlistSessions
-
Lists sessions for a user.
A promise that resolves to a list of sessions for the user.