VertexAIRag内存服务(Service)
A MemoryService backed by a Vertex AI RAG corpus.
This is a Kotlin port of the Python ADK VertexAiRagMemoryService. addSessionToMemory uploads a session's text events to the corpus as a single newline-delimited-JSON file whose display name encodes the app/user/session scope; searchMemory retrieves relevant contexts, keeps only those whose scope matches the requested app and user, and reconstructs the stored events into MemoryEntry results.
It follows the VertexAiSessionService port: a thin VertexAiRagClient over a shared GoogleApiClient handles the Vertex AI RAG REST calls, and @Serializable wire DTOs live in the dto sub-package.
构造函数(Constructors)
类型
Fluent Builder for VertexAiRagMemoryService该功能主要为 Java 语言的调用者提供支持;如果某个属性未被设置,其值将默认使用构造函数中指定的默认值。
函数
将一个会话添加到内存服务中。
异步地搜索与查询条件匹配的会话(session)。