Class McpPromptParameterConverter

java.lang.Object
com.github.thought2code.mcp.annotated.server.converter.AbstractParameterConverter<McpPromptParam>
com.github.thought2code.mcp.annotated.server.converter.McpPromptParameterConverter
All Implemented Interfaces:
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.
Author:
codeboyzhou
  • Constructor Details

    • McpPromptParameterConverter

      public McpPromptParameterConverter()
  • Method Details

    • 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.
      Parameters:
      parameter - the parameter annotated with McpPromptParam
      annotation - the annotation instance
      args - the arguments passed to the method
      Returns:
      the converted value of the parameter
    • getAnnotationType

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