VertexAiSessionService
A SessionService backed by the managed Vertex AI Session Service.
This is a Kotlin port of the Java ADK com.google.adk.sessions.VertexAiSessionService. It talks to the service through a VertexAiSessionsClient over a shared GoogleApiClient. The wire format (defined by session.proto) is modeled with a small set of @Serializable DTOs in the dto sub-package; this class only translates between those DTOs and the ADK domain types via the mapper extensions in com.google.adk.kt.sessions.dto.SessionMappers.
The reasoning engine is fixed at construction from project, location, and reasoningEngineId. Unlike the Python and Java ADK, the session key's SessionKey.appName is never parsed to derive the engine - it is only a label - so the engine must be supplied explicitly here.
Constructors
Creates a service for reasoning engine reasoningEngineId under project and location.
Types
Fluent builder for VertexAiSessionService, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.
Functions
Appends an event to an in-memory session object and updates the session's state based on the event's state delta, if applicable.
Closes a session.
Creates a new session with the specified parameters.
Creates a session that expires, addressing the reasoning engine fixed at construction.
Deletes a specific session.
Retrieves a specific session, optionally filtering the events included.
Lists the events within a specific session.
Lists sessions associated with a specific application and user.