VertexAiSessionService
constructor(project: String, location: String, reasoningEngineId: String, credentials: GoogleCredentials = GoogleApiClient.defaultCredentials(), httpClient: HttpClient = HttpClient(Java), sessionTtl: Duration? = null)
Creates a service for reasoning engine reasoningEngineId under project and location.
Parameters
project
The Google Cloud project id used to address the API.
location
The Google Cloud location; "global" selects the global endpoint.
reasoningEngineId
The numeric id of the reasoning engine to address.
credentials
Credentials for the Vertex AI API; defaults to application-default credentials scoped for Google Cloud Platform.
httpClient
The underlying ktor HttpClient.
sessionTtl
Lifetime applied to every session this service creates, including those the runner creates through the SessionService interface. A per-call ttl or expireTime overrides it; null leaves the backend default in place.