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.
Async callback interface for actions to be performed after an event is processed.
-
Method Summary
Modifier and TypeMethodDescriptionio.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 contextprocessedEvent- the processed task artifact update eventevent- the ADK event- Returns:
- a
Maybethat completes when the callback is done
-