File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/functions Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ static class Config {
132
132
return FunctionCallbackWrapper.builder(new MockWeatherService())
133
133
.withName("CurrentWeather") // (1) function name
134
134
.withDescription("Get the current weather in a given location") // (2) function description
135
- .withSchemaType(SchemaType.OPEN_API ) // (3) schema type. Compulsory for Gemini function calling.
135
+ .withSchemaType(SchemaType.OPEN_API_SCHEMA ) // (3) schema type. Compulsory for Gemini function calling.
136
136
.build();
137
137
}
138
138
...
@@ -189,7 +189,7 @@ UserMessage userMessage = new UserMessage("What's the weather like in San Franci
189
189
var promptOptions = VertexAiGeminiChatOptions.builder()
190
190
.withFunctionCallbacks(List.of(FunctionCallbackWrapper.builder(new MockWeatherService())
191
191
.withName("CurrentWeather")
192
- .withSchemaType(SchemaType.OPEN_API ) // IMPORTANT!!
192
+ .withSchemaType(SchemaType.OPEN_API_SCHEMA ) // IMPORTANT!!
193
193
.withDescription("Get the weather in location")
194
194
.build()))
195
195
.build();
You can’t perform that action at this time.
0 commit comments