接口 ParameterConverter<A extends Annotation>

类型参数:
A - the type of the annotation
所有已知实现类:
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.
作者:
codeboyzhou
  • 方法概要

    修饰符和类型
    方法
    说明
    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.
  • 方法详细资料

    • 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.
      参数:
      parameter - the parameter to convert
      annotation - the annotation that annotates the parameter
      args - the arguments passed to the method
      返回:
      the converted value of the parameter
    • getAnnotationType

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