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:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user