Fixing Kotlin sample applications

Signed-off-by: Soby Chacko <soby.chacko@broadcom.com>
This commit is contained in:
Soby Chacko
2025-05-05 18:49:50 -04:00
parent 8897ba603e
commit 58ae24ce71
2 changed files with 5 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ class KotlinFunctionCallbackApplication {
val chatClient = chatClientBuilder.build();
val response = chatClient
.prompt("What are the weather conditions in San Francisco, Tokyo, and Paris? Find the temperature in Celsius for each of the three locations.")
.tools("WeatherInfo")
.toolNames("WeatherInfo")
.call().chatResponse();
println("Response: $response")

View File

@@ -2,4 +2,7 @@ spring.application.name=rag-with-kotlin
spring.ai.vectorstore.pgvector.initialize-schema=true
spring.sql.init.mode=always
server.port=8090
spring.docker.compose.lifecycle-management=start_only
spring.docker.compose.lifecycle-management=start_and_stop
spring.docker.compose.file=kotlin/rag-with-kotlin/compose.yaml
spring.ai.openai.api-key=<YOUR-OPENAI-API-KEY>