类的用途(Uses of the Class)
com.google.adk.runner.Runner.Builder
Packages that use Runner.Builder
-
**用途:** Runner.Builder 在……里面;处于……状态 com.google.adk.runner
Methods in com.google.adk.runner that return Runner.BuilderModifier and TypeMethodDescriptionRunner.Builder.artifactService(BaseArtifactService artifactService) static Runner.BuilderRunner.builder()Runner.Builder.instantSource(@Nullable InstantSource instantSource) 设置InstantSource该系统提供了这个运行程序(runner)生成的每一个时间戳(timestamp):事件(event)以及相关的时间戳信息。lastUpdateTime这些会话是由默认的内存会话服务(该服务在系统启动时首次被创建)所生成的。build().Runner.Builder.memoryService(BaseMemoryService memoryService) Runner.Builder.scheduler(@Nullable io.reactivex.rxjava3.core.Scheduler scheduler) 设置Scheduler在本次调用中,ADK 将任务交给运行器中的工作线程来处理;这些工作线程实际上就是该系统的子代理(sub-agents)。ParallelAgent工具调用(Tool calls)RunConfig.ToolExecutionMode.PARALLEL_SUBSCRIBE模式(mode)、工作流图中的节点(nodes)以及……中的项目(items)。parallelNode工作流节点会进行重试,并在超时后继续尝试;同时,该节点还会启动实时发送循环(即开始数据的实际传输过程)。Runner.Builder.sessionService(BaseSessionService sessionService) Runner.Builder.uuidProvider(@Nullable UuidProvider uuidProvider) 设置UuidProvider该系统提供了运行时程序生成的所有标识符:事件标识符(event IDs)、函数调用标识符(invocation IDs)以及客户端函数调用标识符(client function-call IDs);同时,它还提供了由默认的内存会话服务(in-memory session service)创建的会话标识符(session IDs)。这个默认的内存会话服务会在程序首次启动时被创建。build().