From 39192049ff98114602212395f37e7ada31e92ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edd=C3=BA=20Mel=C3=A9ndez=20Gonzales?= Date: Thu, 22 May 2025 09:36:49 -0600 Subject: [PATCH] Fix tools docs (#3292) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: EddĂș MelĂ©ndez --- .../src/main/antora/modules/ROOT/pages/api/tools.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/tools.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/tools.adoc index e136e9a6e..286fb7f4c 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/tools.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/tools.adoc @@ -625,7 +625,7 @@ The tool will only be available for the specific chat request it's added to. ---- ChatClient.create(chatModel) .prompt("What's the weather like in Copenhagen?") - .tools("currentWeather") + .toolNames("currentWeather") .call() .content(); ---- @@ -654,7 +654,7 @@ When using the dynamic specification approach, you can pass the tool name to the ChatModel chatModel = ... ChatOptions chatOptions = ToolCallingChatOptions.builder() .toolNames("currentWeather") - .build(): + .build(); Prompt prompt = new Prompt("What's the weather like in Copenhagen?", chatOptions); chatModel.call(prompt); ----