Skip to content

Commit 3919204

Browse files
authored
Fix tools docs (spring-projects#3292)
Signed-off-by: Eddú Meléndez <eddu.melendez@gmail.com>
1 parent 4cac3ff commit 3919204

File tree

1 file changed

+2
-2
lines changed
  • spring-ai-docs/src/main/antora/modules/ROOT/pages/api

1 file changed

+2
-2
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/tools.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ The tool will only be available for the specific chat request it's added to.
625625
----
626626
ChatClient.create(chatModel)
627627
.prompt("What's the weather like in Copenhagen?")
628-
.tools("currentWeather")
628+
.toolNames("currentWeather")
629629
.call()
630630
.content();
631631
----
@@ -654,7 +654,7 @@ When using the dynamic specification approach, you can pass the tool name to the
654654
ChatModel chatModel = ...
655655
ChatOptions chatOptions = ToolCallingChatOptions.builder()
656656
.toolNames("currentWeather")
657-
.build():
657+
.build();
658658
Prompt prompt = new Prompt("What's the weather like in Copenhagen?", chatOptions);
659659
chatModel.call(prompt);
660660
----

0 commit comments

Comments
 (0)