3535
3636/**
3737 * A {@link FunctionCallback} implementation that invokes a method on a given object. It
38- * supports both static and non-static methods. Aslo it supports methods with arbitrary
39- * number of input parameters and methods with void return type.
38+ * supports both static and non-static methods.
39+ *
40+ * Supports methods with arbitrary number of input parameters and methods with void return
41+ * type.
4042 *
4143 * @author Christian Tzolov
4244 * @since 1.0.0
@@ -70,7 +72,7 @@ public class MethodFunctionCallback implements FunctionCallback {
7072 /**
7173 * The JSON schema generated from the method input parameters.
7274 */
73- private final String inptuSchema ;
75+ private final String inputSchema ;
7476
7577 public MethodFunctionCallback (Object functionObject , Method method , String description , ObjectMapper mapper ) {
7678
@@ -89,9 +91,9 @@ public MethodFunctionCallback(Object functionObject, Method method, String descr
8991 // Generate the JSON schema from the method input parameters
9092 Map <String , Class <?>> methodParameters = Stream .of (method .getParameters ())
9193 .collect (Collectors .toMap (param -> param .getName (), param -> param .getType ()));
92- this .inptuSchema = generateJsonSchema (methodParameters );
94+ this .inputSchema = generateJsonSchema (methodParameters );
9395
94- logger .info ("Generated JSON Schema: \n :" + this .inptuSchema );
96+ logger .info ("Generated JSON Schema: \n :" + this .inputSchema );
9597 }
9698
9799 @ Override
@@ -106,7 +108,7 @@ public String getDescription() {
106108
107109 @ Override
108110 public String getInputTypeSchema () {
109- return this .inptuSchema ;
111+ return this .inputSchema ;
110112 }
111113
112114 @ Override
0 commit comments