`Class FirestoreDatabaseRunner`
java.lang.Object
com.google.adk.runner.Runner
com.google.adk.runner.FirestoreDatabaseRunner
FirestoreDatabaseRunner
-
嵌套类概述
Nested classes/interfaces inherited from class Runner
Runner.BuilderModifier and TypeClassDescriptionstatic class“Builder for”是一个用于描述某种构建工具或框架的术语。它通常表示该工具/框架用于帮助开发者或系统管理员快速、高效地创建或构建特定类型的应用程序、系统或组件。例如:“Builder for Web Applications”(用于构建Web应用程序的工具)或“Builder for Cloud Services”(用于构建云服务的工具)。Runner. -
构造函数概述
ConstructorsConstructorDescriptionFirestoreDatabaseRunner(BaseAgent baseAgent, com.google.cloud.firestore.Firestore firestore) FirestoreDatabaseRunner 的构造函数FirestoreDatabaseRunner(BaseAgent baseAgent, String appName, com.google.cloud.firestore.Firestore firestore) 用于 FirestoreDatabaseRunner 的构造函数,该构造函数接受一个参数appName。FirestoreDatabaseRunner(BaseAgent baseAgent, String appName, List<BasePlugin> plugins, com.google.cloud.firestore.Firestore firestore) 用于创建 FirestoreDatabaseRunner 的构造函数,该构造函数接受一个父级 Runner 对象作为参数。 -
方法概述
Methods inherited from class Runner
agent, appName, artifactService, builder, close, memoryService, node, pluginManager, runAsync, runAsync, runAsync, runAsync, runAsync, runAsync, runAsync, runAsyncImpl, runLive, runLive, runLive, runLiveImpl, sessionServiceModifier and TypeMethodDescriptionagent()appName()static Runner.Builderbuilder()io.reactivex.rxjava3.core.Completableclose()关闭所有插件和代码执行器,并释放所有相关资源。@Nullable BaseMemoryServicenode()返回该运行器所执行的工作流节点;如果该运行器执行的是代理树(agent tree),则返回空值。io.reactivex.rxjava3.core.Flowable<Event> runAsync(SessionKey sessionKey, com.google.genai.types.Content newMessage) io.reactivex.rxjava3.core.Flowable<Event> runAsync(SessionKey sessionKey, com.google.genai.types.Content newMessage, RunConfig runConfig) io.reactivex.rxjava3.core.Flowable<Event> runAsync(SessionKey sessionKey, com.google.genai.types.Content newMessage, RunConfig runConfig, @Nullable Map<String, Object> stateDelta) io.reactivex.rxjava3.core.Flowable<Event> io.reactivex.rxjava3.core.Flowable<Event> runAsync(String userId, String sessionId, com.google.genai.types.Content newMessage, RunConfig runConfig) io.reactivex.rxjava3.core.Flowable<Event> runAsync(String userId, String sessionId, com.google.genai.types.Content newMessage, RunConfig runConfig, @Nullable Map<String, Object> stateDelta) 以基于调用的方式运行代理程序。io.reactivex.rxjava3.core.Flowable<Event> runAsync(String userId, String sessionId, @Nullable String invocationId, @Nullable com.google.genai.types.Content newMessage, RunConfig runConfig, @Nullable Map<String, Object> stateDelta) 该命令用于运行代理程序,会恢复已有的任务(即继续执行之前暂停的任务),而不是启动一个新的任务。protected io.reactivex.rxjava3.core.Flowable<Event> runAsyncImpl(Session session, com.google.genai.types.Content newMessage, RunConfig runConfig, @Nullable Map<String, Object> stateDelta) 使用提供的 `Session` 对象异步运行代理程序。io.reactivex.rxjava3.core.Flowable<Event> runLive(SessionKey sessionKey, LiveRequestQueue liveRequestQueue, RunConfig runConfig) 检索会话信息,并以实时模式运行代理程序。io.reactivex.rxjava3.core.Flowable<Event> runLive(Session session, LiveRequestQueue liveRequestQueue, RunConfig runConfig) io.reactivex.rxjava3.core.Flowable<Event> runLive(String userId, String sessionId, LiveRequestQueue liveRequestQueue, RunConfig runConfig) 检索会话信息,并以实时模式运行代理程序。protected io.reactivex.rxjava3.core.Flowable<Event> runLiveImpl(Session session, @Nullable LiveRequestQueue liveRequestQueue, RunConfig runConfig) 以实时模式运行代理程序,并将生成的日志事件添加到会话记录中。
-
构造函数详细信息
-
FirestoreDatabaseRunner
FirestoreDatabaseRunner 的构造函数 -
FirestoreDatabaseRunner
-
FirestoreDatabaseRunner
public FirestoreDatabaseRunner(BaseAgent baseAgent, String appName, List<BasePlugin> plugins, com.google.cloud.firestore.Firestore firestore) 用于创建 FirestoreDatabaseRunner 的构造函数,该构造函数接受一个父级 Runner 对象作为参数。
-