Class McpToolCallbackProviderService.MethodToolCallbackWrapper

java.lang.Object
io.meeds.mcp.server.service.McpToolCallbackProviderService.MethodToolCallbackWrapper
All Implemented Interfaces:
org.springframework.ai.tool.ToolCallback
Enclosing class:
McpToolCallbackProviderService

public static class McpToolCallbackProviderService.MethodToolCallbackWrapper extends Object implements org.springframework.ai.tool.ToolCallback
  • Constructor Details

    • MethodToolCallbackWrapper

      public MethodToolCallbackWrapper(McpServerToolService mcpServerToolService, McpToolApprovalService mcpToolApprovalService, org.exoplatform.portal.config.UserACL userAcl, org.springframework.ai.tool.method.MethodToolCallback toolCallback)
  • Method Details

    • call

      public String call(String toolInput, org.springframework.ai.chat.model.ToolContext toolContext)
      Specified by:
      call in interface org.springframework.ai.tool.ToolCallback
    • call

      public String call(String toolInput)
      Specified by:
      call in interface org.springframework.ai.tool.ToolCallback
    • getToolDefinition

      public org.springframework.ai.tool.definition.ToolDefinition getToolDefinition()
      Specified by:
      getToolDefinition in interface org.springframework.ai.tool.ToolCallback
    • getToolMetadata

      public org.springframework.ai.tool.metadata.ToolMetadata getToolMetadata()
      Specified by:
      getToolMetadata in interface org.springframework.ai.tool.ToolCallback