Interface ParameterConverter<A extends Annotation>

Type Parameters:
A - the type of the annotation
All Known Implementing Classes:
AbstractParameterConverter, McpPromptParameterConverter, McpToolParameterConverter

public interface ParameterConverter<A extends Annotation>
This interface is used to convert the value of a parameter annotated with ParameterConverter to the required type.
Author:
codeboyzhou
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(Parameter parameter, A annotation, Map<String,Object> args)
    Converts the value of the specified parameter annotated with the specified annotation to the required type.
    Returns the type of the annotation that this converter supports.
  • Method Details

    • convert

      Object convert(Parameter parameter, A annotation, Map<String,Object> args)
      Converts the value of the specified parameter annotated with the specified annotation to the required type.
      Parameters:
      parameter - the parameter to convert
      annotation - the annotation that annotates the parameter
      args - the arguments passed to the method
      Returns:
      the converted value of the parameter
    • getAnnotationType

      Class<A> getAnnotationType()
      Returns the type of the annotation that this converter supports.
      Returns:
      the type of the annotation that this converter supports