From 900f5e8cdd12fbd5fd9881a3f7e82bfb7b0c3e88 Mon Sep 17 00:00:00 2001 From: Yornni <2571425925@qq.com> Date: Fri, 22 Aug 2025 16:42:50 +0800 Subject: [PATCH 1/2] docs: correct typo from 'are' to 'and' in advisors.adoc Signed-off-by: Yornni <2571425925@qq.com> --- .../src/main/antora/modules/ROOT/pages/api/advisors.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/advisors.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/advisors.adoc index 0004a1e7dd1..3acf526ee7b 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/advisors.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/advisors.adoc @@ -435,7 +435,7 @@ public Flux adviseStream(ChatClientRequest chatClientRequest * The `StreamResponseMode`, previously part of `ResponseAdvisor`, has been removed. * In 1.0.0 these interfaces have been replaced: ** `CallAroundAdvisor` -> `CallAdvisor`, `StreamAroundAdvisor` -> `StreamAdvisor`, `CallAroundAdvisorChain` -> `CallAdvisorChain` and `StreamAroundAdvisorChain` -> `StreamAdvisorChain`. -** `AdvisedRequest` -> `ChatClientRequest` are `AdivsedResponse` -> `ChatClientResponse`. +** `AdvisedRequest` -> `ChatClientRequest` and `AdivsedResponse` -> `ChatClientResponse`. === Context Map Handling From c84e3b79035a09b733684f07d96fe4cc5df23bef Mon Sep 17 00:00:00 2001 From: Yornii <2571425925@qq.com> Date: Sun, 31 Aug 2025 18:03:21 +0800 Subject: [PATCH 2/2] docs: Update tools.adoc correct typo from 'tools' to 'toolNames' in tools.adoc Signed-off-by: Yornii <2571425925@qq.com> --- .../src/main/antora/modules/ROOT/pages/api/tools.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 2bfac4d975c..db5c46d27eb 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 @@ -618,7 +618,7 @@ class WeatherTools { ==== Adding Tools to `ChatClient` -When using the dynamic specification approach, you can pass the tool name (i.e. the function bean name) to the `tools()` method of `ChatClient`. +When using the dynamic specification approach, you can pass the tool name (i.e. the function bean name) to the `toolNames()` method of `ChatClient`. The tool will only be available for the specific chat request it's added to. [source,java]