java.lang.Object
org.springframework.ai.mcp.annotation.method.tool.ReactiveUtils

public final class ReactiveUtils extends Object
  • Method Details

    • isReactiveReturnTypeOfVoid

      public static boolean isReactiveReturnTypeOfVoid(Method method)
      Check if the given type is a reactive type containing Void (e.g., Mono, Flux, Publisher)
    • isReactiveReturnTypeOfCallToolResult

      public static boolean isReactiveReturnTypeOfCallToolResult(Method method)
      Check if the given type is a reactive type containing CallToolResult (e.g., Mono, Flux, Publisher)
    • getReactiveReturnTypeArgument

      public static Optional<Type> getReactiveReturnTypeArgument(Method method)