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 {
132132 return FunctionCallbackWrapper.builder(new MockWeatherService())
133133 .withName("CurrentWeather") // (1) function name
134134 .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.
136136 .build();
137137 }
138138 ...
@@ -189,7 +189,7 @@ UserMessage userMessage = new UserMessage("What's the weather like in San Franci
189189var promptOptions = VertexAiGeminiChatOptions.builder()
190190 .withFunctionCallbacks(List.of(FunctionCallbackWrapper.builder(new MockWeatherService())
191191 .withName("CurrentWeather")
192- .withSchemaType(SchemaType.OPEN_API ) // IMPORTANT!!
192+ .withSchemaType(SchemaType.OPEN_API_SCHEMA ) // IMPORTANT!!
193193 .withDescription("Get the weather in location")
194194 .build()))
195195 .build();
You can’t perform that action at this time.
0 commit comments