docs: fix incorrect usage of tools and defaultTools (#3533)

Signed-off-by: Jemin Huh <hjm1980@gmail.com>
(cherry picked from commit e4788044bb)
This commit is contained in:
Jemin Huh
2025-06-13 18:37:31 +09:00
committed by Spring Builds
parent 0ce9192383
commit dd84b7558d
3 changed files with 3 additions and 3 deletions

View File

@@ -168,7 +168,7 @@ public Function<Request, Response> weatherFunction() {
String response = ChatClient.create(this.chatModel)
.prompt("What's the weather like in Boston?")
.tools("weatherFunction")
.toolNames("weatherFunction")
.inputType(Request.class)
.call()
.content();

View File

@@ -165,7 +165,7 @@ public Function<Request, Response> weatherFunction() {
String response = ChatClient.create(this.chatModel)
.prompt("What's the weather like in Boston?")
.tools("weatherFunction")
.toolNames("weatherFunction")
.inputType(Request.class)
.call()
.content();

View File

@@ -641,7 +641,7 @@ WARNING: Default tools are shared across all the chat requests performed by all
----
ChatModel chatModel = ...
ChatClient chatClient = ChatClient.builder(chatModel)
.defaultTools("currentWeather")
.defaultToolNames("currentWeather")
.build();
----