Fix tools docs (#3292)

Signed-off-by: Eddú Meléndez <eddu.melendez@gmail.com>
This commit is contained in:
Eddú Meléndez Gonzales
2025-05-22 09:36:49 -06:00
committed by GitHub
parent 4cac3ff8ed
commit 39192049ff

View File

@@ -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);
----