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
Async callback interface for actions to be performed after an event is processed.
  • Method Summary

    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)
    Callback which will be called after an ADK event is successfully converted to an A2A event.
  • 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)
      Callback which will be called after an ADK event is successfully converted to an A2A event. This gives an opportunity to enrich the event with additional metadata or abort the execution by returning an error. The callback is not invoked for errors originating from ADK or event processing.
      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