Interface Callbacks.AfterEventCallback

Enclosing class:
Callbacks
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Callbacks.AfterEventCallback
这是一个异步回调接口,用于在事件处理完成后执行相应的操作。
  • 方法概述

    Modifier and Type
    Method
    Description
    io.reactivex.rxjava3.core.Maybe<io.a2a.spec.TaskArtifactUpdateEvent>
    call(io.a2a.server.agentexecution.RequestContext ctx, io.a2a.spec.TaskArtifactUpdateEvent processedEvent, Event event)
    当一个 ADK 事件成功转换为 A2A 事件后,将会调用这个回调函数。
  • 方法详细信息(Method Details)

    • call

      io.reactivex.rxjava3.core.Maybe<io.a2a.spec.TaskArtifactUpdateEvent> call(io.a2a.server.agentexecution.RequestContext ctx, io.a2a.spec.TaskArtifactUpdateEvent processedEvent, Event event)
      当一个 ADK 事件成功转换为 A2A 事件后,会调用这个回调函数。 该回调函数提供了以下两种可能性: 1. 为事件添加额外的元数据; 2. 通过返回错误代码来中止事件的执行。 需要注意的是,对于由 ADK 本身或事件处理过程引起的错误,该回调函数不会被触发。
      Parameters:
      ctx - the request context
      processedEvent - the processed task artifact update event
      event - the ADK event
      Returns:
      a Maybe that completes when the callback is done