Interface Callbacks.AfterToolCallback

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.AfterToolCallback
这是一个异步回调接口,用于在工具被调用后执行相应的操作。
  • 方法详细信息(Method Details)

    • call

      io.reactivex.rxjava3.core.Maybe<Map<String,Object>> call(InvocationContext invocationContext, BaseTool baseTool, Map<String,Object> input, ToolContext toolContext, Object response)
      工具运行完成后会触发异步回调函数。
      Parameters:
      invocationContext - Invocation context.
      baseTool - Tool instance.
      input - Tool input arguments.
      toolContext - Tool context.
      response - Raw tool response.
      Returns:
      processed result, or empty to keep original.