Skip to content

Commit dee4d27

Browse files
linarkouilayaperumalg
authored andcommitted
fix generic type in explicit type casting
1 parent 2dd5440 commit dee4d27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-ai-core/src/main/java/org/springframework/ai/model/function/DefaultFunctionCallbackBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ public FunctionCallback build() {
144144
BiFunction<I, ToolContext, O> finalBiFunction = (this.biFunction != null) ? this.biFunction
145145
: (request, context) -> this.function.apply(request);
146146

147-
return new FunctionInvokingFunctionCallback(this.name, this.getDescriptionExt(), this.getInputTypeSchema(),
148-
this.inputType, (Function<I, String>) this.getResponseConverter(), this.getObjectMapper(),
149-
finalBiFunction);
147+
return new FunctionInvokingFunctionCallback<>(this.name, this.getDescriptionExt(),
148+
this.getInputTypeSchema(), this.inputType, (Function<O, String>) this.getResponseConverter(),
149+
this.getObjectMapper(), finalBiFunction);
150150
}
151151

152152
private String getDescriptionExt() {

0 commit comments

Comments
 (0)