Interface Callbacks.AfterExecuteCallback

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.AfterExecuteCallback
Async callback interface for actions to be performed after an execution is completed or failed.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.reactivex.rxjava3.core.Maybe<io.a2a.spec.TaskStatusUpdateEvent>
    call(io.a2a.server.agentexecution.RequestContext ctx, io.a2a.spec.TaskStatusUpdateEvent finalUpdateEvent)
    Callback which will be called after an execution resolved into a completed or failed task.
  • Method Details

    • call

      io.reactivex.rxjava3.core.Maybe<io.a2a.spec.TaskStatusUpdateEvent> call(io.a2a.server.agentexecution.RequestContext ctx, io.a2a.spec.TaskStatusUpdateEvent finalUpdateEvent)
      Callback which will be called after an execution resolved into a completed or failed task. This gives an opportunity to enrich the event with additional metadata or log it.
      Parameters:
      ctx - the request context
      finalUpdateEvent - the final update event
      Returns:
      a Maybe that completes when the callback is done