Class JsonSchemaGenerator
java.lang.Object
org.springaicommunity.mcp.method.tool.utils.JsonSchemaGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgenerateForMethodInput(Method method) static StringgenerateFromClass(Class<?> clazz) static StringgenerateFromType(Type type) static booleanhasCallToolRequestParameter(Method method) Check if a method has a CallToolRequest parameter.
-
Constructor Details
-
JsonSchemaGenerator
public JsonSchemaGenerator()
-
-
Method Details
-
generateForMethodInput
-
generateFromClass
-
generateFromType
-
hasCallToolRequestParameter
Check if a method has a CallToolRequest parameter.- Parameters:
method- The method to check- Returns:
- true if the method has a CallToolRequest parameter, false otherwise
-