类 McpPromptParameterConverter

java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.converter.AbstractParameterConverter<McpPromptParam>
com.github.codeboyzhou.mcp.declarative.server.converter.McpPromptParameterConverter
所有已实现的接口:
ParameterConverter<McpPromptParam>

public class McpPromptParameterConverter extends AbstractParameterConverter<McpPromptParam>
This class is used to convert the value of a parameter annotated with McpPromptParam to the required type.
作者:
codeboyzhou
  • 构造器详细资料

    • McpPromptParameterConverter

      public McpPromptParameterConverter()
  • 方法详细资料

    • convert

      public Object convert(Parameter parameter, McpPromptParam annotation, Map<String,Object> args)
      Converts the value of the parameter annotated with McpPromptParam to the required type.
      参数:
      parameter - the parameter annotated with McpPromptParam
      annotation - the annotation instance
      args - the arguments passed to the method
      返回:
      the converted value of the parameter
    • getAnnotationType

      public Class<McpPromptParam> getAnnotationType()
      Returns the type of the annotation this converter handles.
      返回:
      the type of the annotation this converter handles