Interface Callbacks.BeforeToolCallback

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.BeforeToolCallback
这是一个异步回调接口,用于在调用某个工具之前需要执行的操作。
  • 方法详细信息(Method Details)

    • call

      io.reactivex.rxjava3.core.Maybe<Map<String,Object>> call(InvocationContext invocationContext, BaseTool baseTool, Map<String,Object> input, ToolContext toolContext)
      在工具运行之前执行的异步回调函数。
      Parameters:
      invocationContext - Invocation context.
      baseTool - Tool instance.
      input - Tool input arguments.
      toolContext - Tool context.
      Returns:
      override result, or empty to continue.