Interface Callbacks.BeforeExecuteCallback

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.BeforeExecuteCallback
这是一个异步回调接口,用于在执行任务之前需要执行的操作。
  • 方法概述

    Modifier and Type
    Method
    Description
    io.reactivex.rxjava3.core.Single<Boolean>
    call(io.a2a.server.agentexecution.RequestContext ctx)
    这个回调函数会在执行开始之前被调用。
  • 方法详细信息(Method Details)

    • call

      io.reactivex.rxjava3.core.Single<Boolean> call(io.a2a.server.agentexecution.RequestContext ctx)
      这个回调函数会在执行开始之前被调用。它可以用于对执行过程进行监控(即“instrument”执行过程),或者通过返回错误来阻止执行的继续。
      Parameters:
      ctx - the request context
      Returns:
      a Single that completes with a boolean indicating whether the execution should be prevented