Skip to content

Commit

Permalink
spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
tzolov committed Oct 4, 2024
1 parent 8ed5c06 commit 8d11a01
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@

/**
* A {@link FunctionCallback} implementation that invokes a method on a given object. It
* supports both static and non-static methods. Aslo it supports methods with arbitrary
* number of input parameters and methods with void return type.
* supports both static and non-static methods.
*
* Supports methods with arbitrary number of input parameters and methods with void return
* type.
*
* @author Christian Tzolov
* @since 1.0.0
Expand Down Expand Up @@ -70,7 +72,7 @@ public class MethodFunctionCallback implements FunctionCallback {
/**
* The JSON schema generated from the method input parameters.
*/
private final String inptuSchema;
private final String inputSchema;

public MethodFunctionCallback(Object functionObject, Method method, String description, ObjectMapper mapper) {

Expand All @@ -89,9 +91,9 @@ public MethodFunctionCallback(Object functionObject, Method method, String descr
// Generate the JSON schema from the method input parameters
Map<String, Class<?>> methodParameters = Stream.of(method.getParameters())
.collect(Collectors.toMap(param -> param.getName(), param -> param.getType()));
this.inptuSchema = generateJsonSchema(methodParameters);
this.inputSchema = generateJsonSchema(methodParameters);

logger.info("Generated JSON Schema: \n:" + this.inptuSchema);
logger.info("Generated JSON Schema: \n:" + this.inputSchema);
}

@Override
Expand All @@ -106,7 +108,7 @@ public String getDescription() {

@Override
public String getInputTypeSchema() {
return this.inptuSchema;
return this.inputSchema;
}

@Override
Expand Down

0 comments on commit 8d11a01

Please sign in to comment.