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.
异步回调接口:用于在执行任务完成后或任务失败时执行相应的操作。
-
方法概述
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Maybe<io.a2a.spec.TaskStatusUpdateEvent> call(io.a2a.server.agentexecution.RequestContext ctx, io.a2a.spec.TaskStatusUpdateEvent finalUpdateEvent) 这个回调函数会在任务执行完成后(无论是成功完成还是失败)被调用。
-
方法详细信息(Method Details)
-
call
io.reactivex.rxjava3.core.Maybe<io.a2a.spec.TaskStatusUpdateEvent> call(io.a2a.server.agentexecution.RequestContext ctx, io.a2a.spec.TaskStatusUpdateEvent finalUpdateEvent) 这是一个回调函数,它会在任务执行完成后(无论是成功还是失败)被调用。 这个回调函数提供了为事件添加额外元数据或记录日志的机会。- Parameters:
ctx- the request contextfinalUpdateEvent- the final update event- Returns:
- a
Maybethat completes when the callback is done
-