diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/bedrock-converse.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/bedrock-converse.adoc index 29c24d18c..44966528e 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/bedrock-converse.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/bedrock-converse.adoc @@ -168,7 +168,7 @@ public Function weatherFunction() { String response = ChatClient.create(this.chatModel) .prompt("What's the weather like in Boston?") - .tools("weatherFunction") + .toolNames("weatherFunction") .inputType(Request.class) .call() .content(); diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/vertexai-gemini-chat.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/vertexai-gemini-chat.adoc index bc6c7682a..32c41a7ac 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/vertexai-gemini-chat.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/vertexai-gemini-chat.adoc @@ -165,7 +165,7 @@ public Function weatherFunction() { String response = ChatClient.create(this.chatModel) .prompt("What's the weather like in Boston?") - .tools("weatherFunction") + .toolNames("weatherFunction") .inputType(Request.class) .call() .content(); 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 d649452b1..28b6f0919 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 @@ -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(); ----