Interface Callbacks.OnToolErrorCallback

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.OnToolErrorCallback
Async callback interface for handling errors that occur during a tool invocation.
  • Method Details

    • call

      io.reactivex.rxjava3.core.Maybe<Map<String,Object>> call(InvocationContext invocationContext, BaseTool baseTool, Map<String,Object> input, ToolContext toolContext, Exception error)
      Async callback when tool call fails.
      Parameters:
      invocationContext - Invocation context.
      baseTool - Tool instance.
      input - Tool input arguments.
      toolContext - Tool context.
      error - The exception that occurred.
      Returns:
      override result, or empty to continue with error.