类的用途(Uses of the Class)
com.google.adk.events.Event
Packages that use Event
Package
Description
-
**用途:** 事件 在……里面;处于……状态 com.google.adk.a2a.agent
Methods in com.google.adk.a2a.agent that return types with arguments of type EventModifier and TypeMethodDescriptionprotected io.reactivex.rxjava3.core.Flowable<Event> RemoteA2AAgent.runAsyncImpl(InvocationContext invocationContext) protected io.reactivex.rxjava3.core.Flowable<Event> RemoteA2AAgent.runLiveImpl(InvocationContext invocationContext) -
**用途:** 事件 在……里面;处于……状态 com.google.adk.a2a.converters
Methods in com.google.adk.a2a.converters that return EventModifier and TypeMethodDescriptionstatic EventResponseConverter.artifactToEvent(io.a2a.spec.Artifact artifact, InvocationContext invocationContext) 将某个“artifact”(工件/数据对象)转换为 ADK(Application Development Kit)事件。static @Nullable EventEventConverter.findUserFunctionCall(List<Event> events) 返回最后一个事件中第一个非凭据相关函数响应所对应的调用事件。static EventResponseConverter.messageToEvent(io.a2a.spec.Message message, InvocationContext invocationContext) 将 A2A 消息转换回 ADK 事件。static EventResponseConverter.messageToEvent(io.a2a.spec.Message message, InvocationContext invocationContext, boolean isPending) 将 A2A 消息转换回 ADK 事件。static EventResponseConverter.messageToFailedEvent(io.a2a.spec.Message message, InvocationContext invocationContext) 将因任务失败而产生的 A2A(点对点)消息转换为 ADK(应用开发框架)事件,并在事件中填充相应的错误信息。static EventResponseConverter.taskToEvent(io.a2a.spec.Task task, InvocationContext invocationContext) 将 A2A 请求转换为另一种格式或类型。Task发送到一个 ADK(Application Development Kit,应用程序开发工具包)Event.Methods in com.google.adk.a2a.converters that return types with arguments of type EventModifier and TypeMethodDescriptionResponseConverter.clientEventToEvent(io.a2a.client.ClientEvent event, InvocationContext invocationContext) 将 A2A 请求转换为另一种格式。ClientEvent发送到一个 ADK(Application Development Kit,应用程序开发工具包)Event根据事件类型(event type)来决定相应的处理方式。Methods in com.google.adk.a2a.converters with parameters of type EventModifier and TypeMethodDescriptionstatic String从事件中返回上下文 ID(context ID)。static String从事件中返回任务 ID。Method parameters in com.google.adk.a2a.converters with type arguments of type EventModifier and TypeMethodDescriptionstatic com.google.common.collect.ImmutableList<io.a2a.spec.Part<?>> EventConverter.answerParts(List<Event> events) 返回用户回答中的相关部分,以便将这些部分发送给处理该用户呼叫的远程代理。static @Nullable EventEventConverter.findUserFunctionCall(List<Event> events) 返回最后一个事件中第一个非凭据相关函数响应所对应的调用事件。 -
**用途:** 事件 在……里面;处于……状态 com.google.adk.a2a.executor
Methods in com.google.adk.a2a.executor with parameters of type Event -
**用途:** 事件 在……里面;处于……状态 com.google.adk.agents
Methods in com.google.adk.agents that return types with arguments of type EventModifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList<Event> InvocationContext.events(boolean currentInvocation, boolean currentBranch) 返回当前会话中的所有事件;这些事件可以根据需要被过滤,仅显示与当前调用或当前分支相关的事件。PlanningContext.events()返回当前会话中的所有事件。ReadonlyContext.events()返回一个不可修改的视图,用于显示会话中的所有事件。com.google.common.collect.ImmutableList<Event> InvocationContext.eventsOnCurrentBranch()返回会话事件的快照,仅保留当前调用所运行的分支上的事件数据,不包括其他工作流节点的输入信息。io.reactivex.rxjava3.core.Flowable<Event> BaseAgent.runAsync(InvocationContext parentContext) 异步运行代理程序。io.reactivex.rxjava3.core.Flowable<Event> NodeViewAgent.runAsync(InvocationContext parentContext) protected abstract io.reactivex.rxjava3.core.Flowable<Event> BaseAgent.runAsyncImpl(InvocationContext invocationContext) 与特定代理(Agent)相关的异步逻辑(Agent-specific asynchronous logic)。protected io.reactivex.rxjava3.core.Flowable<Event> LlmAgent.runAsyncImpl(InvocationContext invocationContext) protected io.reactivex.rxjava3.core.Flowable<Event> LoopAgent.runAsyncImpl(InvocationContext invocationContext) protected io.reactivex.rxjava3.core.Flowable<Event> NodeViewAgent.runAsyncImpl(InvocationContext invocationContext) protected io.reactivex.rxjava3.core.Flowable<Event> ParallelAgent.runAsyncImpl(InvocationContext invocationContext) 并行运行子代理(sub-agents),并收集它们产生的事件数据。protected io.reactivex.rxjava3.core.Flowable<Event> PlannerAgent.runAsyncImpl(InvocationContext invocationContext) protected io.reactivex.rxjava3.core.Flowable<Event> SequentialAgent.runAsyncImpl(InvocationContext invocationContext) 按顺序运行子代理(sub-agents)。io.reactivex.rxjava3.core.Flowable<Event> BaseAgent.runLive(InvocationContext parentContext) 同步运行代理程序。io.reactivex.rxjava3.core.Flowable<Event> NodeViewAgent.runLive(InvocationContext parentContext) protected abstract io.reactivex.rxjava3.core.Flowable<Event> BaseAgent.runLiveImpl(InvocationContext invocationContext) 与特定代理相关的同步逻辑(Agent-specific synchronous logic)。protected io.reactivex.rxjava3.core.Flowable<Event> LlmAgent.runLiveImpl(InvocationContext invocationContext) protected io.reactivex.rxjava3.core.Flowable<Event> LoopAgent.runLiveImpl(InvocationContext invocationContext) protected io.reactivex.rxjava3.core.Flowable<Event> NodeViewAgent.runLiveImpl(InvocationContext invocationContext) protected io.reactivex.rxjava3.core.Flowable<Event> ParallelAgent.runLiveImpl(InvocationContext invocationContext) ParallelAgent 不支持该功能。protected io.reactivex.rxjava3.core.Flowable<Event> PlannerAgent.runLiveImpl(InvocationContext invocationContext) protected io.reactivex.rxjava3.core.Flowable<Event> SequentialAgent.runLiveImpl(InvocationContext invocationContext) 在实时模式下,按顺序依次运行子代理(sub-agents)。io.reactivex.rxjava3.core.Flowable<Event> 将该代理作为工作流中的一个节点来运行,并将其部署在该节点的分支上;这样,后续的节点就能够接收到该代理产生的事件(即数据或信号)。io.reactivex.rxjava3.core.Flowable<Event> 将此代理作为工作流节点来运行。Methods in com.google.adk.agents with parameters of type EventModifier and TypeMethodDescriptionfinal void发送event从这个工作流节点的……FunctionNode在之前的调用之后、以及输出结果之前,该内容会被显示在 `body` 部分中。booleanInvocationContext.isOtherNodeInput(Event event) 返回一个布尔值,表示是否……event当前轮到用户了;此时,工作流中的一个节点(该节点不属于当前上下文)被添加为该节点的输入数据,但这里的代理(agent)并未看到这一操作。booleanInvocationContext.shouldPauseInvocation(Event event) 该函数用于判断是否应在该事件发生后立即暂停函数的执行;该函数是可以被重新启动的,并且该事件涉及一个需要长时间运行的函数调用(包括一些模拟操作)。adk_request_confirmationHITL 请求。 -
**用途:** 事件 在……里面;处于……状态 com.google.adk.events
Classes in com.google.adk.events that implement interfaces with type arguments of type EventMethods in com.google.adk.events that return EventMethods in com.google.adk.events that return types with arguments of type EventConstructor parameters in com.google.adk.events with type arguments of type Event -
**用途:** 事件 在……里面;处于……状态 com.google.adk.flows
Methods in com.google.adk.flows that return types with arguments of type EventModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Flowable<Event> BaseFlow.run(InvocationContext invocationContext) 运行这个流程。default io.reactivex.rxjava3.core.Flowable<Event> BaseFlow.runLive(InvocationContext invocationContext) -
**用途:** 事件 在……里面;处于……状态 com.google.adk.flows.llmflows
Methods in com.google.adk.flows.llmflows that return EventModifier and TypeMethodDescriptionstatic EventOutputSchema.createFinalModelResponseEvent(InvocationContext context, String jsonResponse) 从 `set_model_response` JSON 数据中生成最终的模型响应事件。Methods in com.google.adk.flows.llmflows that return types with arguments of type EventModifier and TypeMethodDescriptionRequestProcessor.RequestProcessingResult.events()在处理过程中生成的事件。ResponseProcessor.ResponseProcessingResult.events()在处理过程中生成的事件。Functions.findMatchingFunctionCallEvent(List<Event> events) 返回最近的一次函数调用事件;该事件的调用 ID 与上一个事件中的函数响应相匹配;如果没有匹配的调用 ID,则返回空值。Functions.generateRequestConfirmationEvent(InvocationContext invocationContext, Event functionCallEvent, Event functionResponseEvent) 从函数响应事件中生成一个请求确认事件。static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCalls(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools) 处理标准的、非流式的函数调用。static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCalls(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools, Map<String, ToolConfirmation> toolConfirmations) 处理标准(非流式)函数调用,并提供相应的工具确认功能。static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCallsLive(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools) 用于处理实时/流式环境中的函数调用,支持后台执行以及流的终止。static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCallsLive(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools, Map<String, ToolConfirmation> toolConfirmations) 该组件能够在实时/流式环境中处理函数调用,并提供相应的工具确认功能;同时支持后台执行以及流的终止操作。protected io.reactivex.rxjava3.core.Flowable<Event> BaseLlmFlow.postprocess(InvocationContext context, Event baseEventForLlmResponse, LlmRequest llmRequest, LlmResponse llmResponse, io.opentelemetry.context.Context parentContext) 在从大型语言模型(LLM)接收到响应后,会对该响应进行后处理。io.reactivex.rxjava3.core.Flowable<Event> BaseLlmFlow.run(InvocationContext invocationContext) 通过反复调用相关函数,执行整个大型语言模型(LLM)的运行流程。BaseLlmFlow.runOneStep(Context, InvocationContext)直到收到最终的回复为止。io.reactivex.rxjava3.core.Flowable<Event> BaseLlmFlow.runLive(InvocationContext invocationContext) 以流式模式执行大型语言模型(LLM)的相关流程。Methods in com.google.adk.flows.llmflows with parameters of type EventModifier and TypeMethodDescriptionFunctions.generateRequestConfirmationEvent(InvocationContext invocationContext, Event functionCallEvent, Event functionResponseEvent) 从函数响应事件中生成一个请求确认事件。static com.google.common.collect.ImmutableList<com.google.genai.types.FunctionCall> Functions.getAskUserConfirmationFunctionCalls(Event event) 从事件中获取用户确认请求的函数调用记录。OutputSchema.getStructuredModelResponse(Event functionResponseEvent) 提取已成功验证的数据。set_model_response将结果以 JSON 格式返回。static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCalls(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools) 处理标准的、非流式的函数调用。static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCalls(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools, Map<String, ToolConfirmation> toolConfirmations) 处理标准(非流式)函数调用,并提供相应的工具确认功能。static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCallsLive(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools) 用于处理实时/流式环境中的函数调用,支持后台执行以及流的终止。static io.reactivex.rxjava3.core.Maybe<Event> Functions.handleFunctionCallsLive(InvocationContext invocationContext, Event functionCallEvent, Map<String, BaseTool> tools, Map<String, ToolConfirmation> toolConfirmations) 该组件能够在实时/流式环境中处理函数调用,并提供相应的工具确认功能;同时支持后台执行以及流的终止操作。static booleanFunctions.hasPendingLongRunningCall(Event event) 该方法用于判断该事件是否触发了某个需要长时间运行(且尚未收到响应)的函数调用。static voidFunctions.populateClientFunctionCallId(Event modelResponseEvent) 为提供的事件内容中缺失的函数调用 ID 填充相应的值。static voidFunctions.populateClientFunctionCallId(Event modelResponseEvent, UuidProvider uuidProvider) 使用所提供的信息,填充事件内容中缺失的函数调用 ID。UuidProvider.protected io.reactivex.rxjava3.core.Flowable<Event> BaseLlmFlow.postprocess(InvocationContext context, Event baseEventForLlmResponse, LlmRequest llmRequest, LlmResponse llmResponse, io.opentelemetry.context.Context parentContext) 在从大型语言模型(LLM)接收到响应后,会对该响应进行后处理。Method parameters in com.google.adk.flows.llmflows with type arguments of type EventModifier and TypeMethodDescriptionstatic io.reactivex.rxjava3.core.CompletablePersistBarrier.awaitPersisted(InvocationContext context, List<Event> events) 每次事件发生时,该操作都会被执行一次。events已经被PersistBarrier.markPersisted(InvocationContext, String)如果其中任何一个步骤失败,那么整个操作也会失败。PersistBarrier.markFailed(InvocationContext, String, Throwable);如果该“障碍”(即阻止进程继续执行的因素)从未存在过,那么操作会立即完成。PersistBarrier.enable(InvocationContext)d.RequestProcessor.RequestProcessingResult.create(LlmRequest updatedRequest, Iterable<Event> events) 创建一个新的……RequestProcessor.RequestProcessingResult.ResponseProcessor.ResponseProcessingResult.create(LlmResponse updatedResponse, Iterable<Event> events) ResponseProcessor.ResponseProcessingResult.create(LlmResponse updatedResponse, Iterable<Event> events, String transferToAgent) Functions.findMatchingFunctionCallEvent(List<Event> events) 返回最近的一次函数调用事件;该事件的调用 ID 与上一个事件中的函数响应相匹配;如果没有匹配的调用 ID,则返回空值。 -
**用途:** 事件 在……里面;处于……状态 com.google.adk.plugins
Methods in com.google.adk.plugins that return types with arguments of type EventModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<Event> DebugLoggingPlugin.onEventCallback(InvocationContext invocationContext, Event event) io.reactivex.rxjava3.core.Maybe<Event> LoggingPlugin.onEventCallback(InvocationContext invocationContext, Event event) default io.reactivex.rxjava3.core.Maybe<Event> Plugin.onEventCallback(InvocationContext invocationContext, Event event) 在事件从运行器(runner)中被处理/执行后,会触发相应的回调函数(Callback)。io.reactivex.rxjava3.core.Maybe<Event> PluginManager.onEventCallback(InvocationContext invocationContext, Event event) Methods in com.google.adk.plugins with parameters of type EventModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<Event> DebugLoggingPlugin.onEventCallback(InvocationContext invocationContext, Event event) io.reactivex.rxjava3.core.Maybe<Event> LoggingPlugin.onEventCallback(InvocationContext invocationContext, Event event) default io.reactivex.rxjava3.core.Maybe<Event> Plugin.onEventCallback(InvocationContext invocationContext, Event event) 在事件从运行器(runner)中被处理/执行后,会触发相应的回调函数(Callback)。io.reactivex.rxjava3.core.Maybe<Event> PluginManager.onEventCallback(InvocationContext invocationContext, Event event) -
**用途:** 事件 在……里面;处于……状态 com.google.adk.plugins.agentanalytics
Methods in com.google.adk.plugins.agentanalytics that return types with arguments of type EventModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<Event> BigQueryAgentAnalyticsPlugin.onEventCallback(InvocationContext invocationContext, Event event) Methods in com.google.adk.plugins.agentanalytics with parameters of type EventModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<Event> BigQueryAgentAnalyticsPlugin.onEventCallback(InvocationContext invocationContext, Event event) -
**用途:** 事件 在……里面;处于……状态 com.google.adk.runner
Methods in com.google.adk.runner that return types with arguments of type EventModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Flowable<Event> Runner.runAsync(SessionKey sessionKey, com.google.genai.types.Content newMessage) io.reactivex.rxjava3.core.Flowable<Event> Runner.runAsync(SessionKey sessionKey, com.google.genai.types.Content newMessage, RunConfig runConfig) io.reactivex.rxjava3.core.Flowable<Event> Runner.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> Runner.runAsync(String userId, String sessionId, com.google.genai.types.Content newMessage, RunConfig runConfig) io.reactivex.rxjava3.core.Flowable<Event> Runner.runAsync(String userId, String sessionId, com.google.genai.types.Content newMessage, RunConfig runConfig, @Nullable Map<String, Object> stateDelta) 以基于调用的方式运行代理程序。io.reactivex.rxjava3.core.Flowable<Event> Runner.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> Runner.runAsyncImpl(Session session, com.google.genai.types.Content newMessage, RunConfig runConfig, @Nullable Map<String, Object> stateDelta) 使用提供的 `Session` 对象异步运行代理程序。io.reactivex.rxjava3.core.Flowable<Event> Runner.runLive(SessionKey sessionKey, LiveRequestQueue liveRequestQueue, RunConfig runConfig) 检索会话信息,并以实时模式运行代理程序。io.reactivex.rxjava3.core.Flowable<Event> Runner.runLive(Session session, LiveRequestQueue liveRequestQueue, RunConfig runConfig) io.reactivex.rxjava3.core.Flowable<Event> Runner.runLive(String userId, String sessionId, LiveRequestQueue liveRequestQueue, RunConfig runConfig) 检索会话信息,并以实时模式运行代理程序。protected io.reactivex.rxjava3.core.Flowable<Event> Runner.runLiveImpl(Session session, @Nullable LiveRequestQueue liveRequestQueue, RunConfig runConfig) 以实时模式运行代理程序,并将生成的日志事件添加到会话记录中。 -
**用途:** 事件 在……里面;处于……状态 com.google.adk.sessions
Methods in com.google.adk.sessions that return types with arguments of type EventModifier and TypeMethodDescriptiondefault io.reactivex.rxjava3.core.Single<Event> BaseSessionService.appendEvent(Session session, Event event) 将一个事件添加到内存中的会话对象中,并根据该事件的状态变化(如果适用的话)更新会话的状态。io.reactivex.rxjava3.core.Single<Event> FirestoreSessionService.appendEvent(Session session, Event event) 将一个事件添加到会话中,同时更新会话状态并将其数据持久化到 Firestore 中。io.reactivex.rxjava3.core.Single<Event> InMemorySessionService.appendEvent(Session session, Event event) io.reactivex.rxjava3.core.Single<Event> VertexAiSessionService.appendEvent(Session session, Event event) abstract com.google.common.collect.ImmutableList<Event> ListEventsResponse.events()Session.events()已弃用(Deprecated)。com.google.common.collect.ImmutableList<Event> Session.immutableEvents()返回一个线程安全的、不可变的会话事件快照;该快照的生成过程会同步底层数据(即会话中的所有事件)。Session.events()list.Methods in com.google.adk.sessions with parameters of type EventModifier and TypeMethodDescriptionvoid在字符串的末尾添加一个字符(或元素)。Event在同步后台数据的过程中,这些事件会被添加到会话的事件列表中。Session.events()**list; prefer over** (用于表示在多个选项中优先选择某个选项)events().add(event).default io.reactivex.rxjava3.core.Single<Event> BaseSessionService.appendEvent(Session session, Event event) 将一个事件添加到内存中的会话对象中,并根据该事件的状态变化(如果适用的话)更新会话的状态。io.reactivex.rxjava3.core.Single<Event> FirestoreSessionService.appendEvent(Session session, Event event) 将一个事件添加到会话中,同时更新会话状态并将其数据持久化到 Firestore 中。io.reactivex.rxjava3.core.Single<Event> InMemorySessionService.appendEvent(Session session, Event event) io.reactivex.rxjava3.core.Single<Event> VertexAiSessionService.appendEvent(Session session, Event event) Method parameters in com.google.adk.sessions with type arguments of type EventModifier and TypeMethodDescriptionvoidSession.addEvents(Collection<Event> events) 将所有内容追加到……的末尾。Event在同步数据的过程中,将给定集合中的元素(标记为 `s`)添加到会话的事件列表中;同时,也会对相关的数据进行同步处理(即更新其背后的存储结构)。Session.events()**list; prefer over** (用于表示在多个选项中优先选择某个选项)events().addAll(events).abstract ListEventsResponse.BuilderSession.Builder.eventsView(List<Event> events) 已弃用(Deprecated)。这并不属于真正的“功能淘汰”(即不再支持某个功能)——而只是对应用程序代码的一种警告:该代码可能用于 ADK 自带的框架或跨平台适配器中;请避免使用该代码。Session.Builder.events(List)相反。 -
**用途:** 事件 在……里面;处于……状态 com.google.adk.summarizer
Methods in com.google.adk.summarizer that return types with arguments of type EventModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<Event> BaseEventSummarizer.summarizeEvents(List<Event> events) 将一系列事件合并为一个事件。io.reactivex.rxjava3.core.Maybe<Event> LlmEventSummarizer.summarizeEvents(List<Event> events) Method parameters in com.google.adk.summarizer with type arguments of type EventModifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<Event> BaseEventSummarizer.summarizeEvents(List<Event> events) 将一系列事件合并为一个事件。io.reactivex.rxjava3.core.Maybe<Event> LlmEventSummarizer.summarizeEvents(List<Event> events) -
**用途:** 事件 在……里面;处于……状态 com.google.adk.telemetry
Methods in com.google.adk.telemetry that return EventModifier and TypeMethodDescription@Nullable EventInstrumentation.TelemetryContext.functionResponseEvent()如果可用的话,会检索与函数执行相关的响应事件。Methods in com.google.adk.telemetry with parameters of type EventModifier and TypeMethodDescriptionvoid将一个事件添加到在此次代理调用期间被跟踪的事件列表中。static voidMetrics.recordToolResponseSize(String toolName, String agentName, @Nullable Event responseEvent) 记录工具响应的数据大小。voidInstrumentation.TelemetryContext.setFunctionResponseEvent(@Nullable Event functionResponseEvent) 设置与函数执行相关的响应事件。static voidTracing.traceMergedToolCalls(io.opentelemetry.api.trace.Span span, String responseEventId, Event functionResponseEvent) 该工具可以合并多个工具调用事件(tool call events)的记录。static voidTracing.traceToolExecution(io.opentelemetry.api.trace.Span span, String toolName, String toolDescription, String toolType, Map<String, Object> args, @Nullable Event functionResponseEvent, @Nullable Throwable error) 该工具用于追踪程序的执行过程,包括程序接收的参数、程序返回的结果以及可能出现的任何错误。Method parameters in com.google.adk.telemetry with type arguments of type EventModifier and TypeMethodDescriptionstatic voidMetrics.recordAgentResponseSize(String agentName, @Nullable List<Event> events) 通过从事件中提取内容来记录代理响应的大小。static voidMetrics.recordAgentWorkflowSteps(String agentName, List<Event> events) 通过统计事件的数量来记录代理工作流程中的步骤数。 -
**用途:** 事件 在……里面;处于……状态 com.google.adk.web.controller
Methods in com.google.adk.web.controller that return types with arguments of type EventModifier and TypeMethodDescriptionExecutionController.agentRun(AgentRunRequest request) 为指定的会话和消息执行一次非流式(非实时传输)的代理任务。 -
**用途:** 事件 在……里面;处于……状态 com.google.adk.workflow
Methods in com.google.adk.workflow that return types with arguments of type EventModifier and TypeMethodDescriptionstatic io.reactivex.rxjava3.core.Flowable<Event> NodeRunner.runRoot(Node node, InvocationContext context, Function<? super Event, ? extends io.reactivex.rxjava3.core.Single<Event>> processEvent) 运行node作为……的根源;作为……的基础context在调用过程中,会处理用户提供的内容,并将每个事件依次传递下去(即:每个事件都会被依次处理)。processEvent(表示事情按计划进行或按预期发展)很好;只是……Runner应该调用这个方法。Methods in com.google.adk.workflow with parameters of type EventModifier and TypeMethodDescriptionbooleanNodeExecutionState.emitFromBody(Event event) 发送event需要一个 ID 的内容,代表……Context.emit(Event)如果没有任何代码(即 `body` 部分为空)被执行,则返回 `false`。Method parameters in com.google.adk.workflow with type arguments of type EventModifier and TypeMethodDescriptionstatic io.reactivex.rxjava3.core.Flowable<Event> NodeRunner.runRoot(Node node, InvocationContext context, Function<? super Event, ? extends io.reactivex.rxjava3.core.Single<Event>> processEvent) 运行node作为……的根源;作为……的基础context在调用过程中,会处理用户提供的内容,并将每个事件依次传递下去(即:每个事件都会被依次处理)。processEvent(表示事情按计划进行或按预期发展)很好;只是……Runner应该调用这个方法。static io.reactivex.rxjava3.core.Flowable<Event> NodeRunner.runRoot(Node node, InvocationContext context, Function<? super Event, ? extends io.reactivex.rxjava3.core.Single<Event>> processEvent) 运行node作为……的根源;作为……的基础context在调用过程中,会处理用户提供的内容,并将每个事件依次传递下去(即:每个事件都会被依次处理)。processEvent(表示事情按计划进行或按预期发展)很好;只是……Runner应该调用这个方法。
Session.immutableEvents()在读取或遍历事件时(为了避免……)ConcurrentModificationException),以及Session.addEvent(Event)或者Session.addEvents(Collection)在添加事件时(when appending events)。