VertexAI会话(Session)服务(Service)
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)
为推理引擎创建一个服务。 reasoningEngineId 在……下面;在……之下 项目 和 位置.
类型
Fluent Builder for VertexAiSessionService该功能主要为 Java 语言的调用者提供支持;如果某个属性未被设置,其值将默认使用构造函数中指定的默认值。
函数
关闭会话。
使用指定的参数创建一个新的会话。
创建一个会话(session),该会话会在特定时间后失效。这一设计是为了满足推理引擎在系统构建阶段就已确定的特定需求。
删除特定的会话。
检索特定的会话(session),并可选择性地过滤其中包含的事件(events)。
列出特定会话中的所有事件。
列出与特定应用程序和用户关联的会话(session)。