Skip to content

Commit 962d2ed

Browse files
committed
Refactor(tool): Enhance ToolCallbackAutoRegistrar for robustness and clarity
This commit refactors `ToolCallbackAutoRegistrar` to improve its reliability, clarity, and initialization process. Key changes include: - Consolidated tool callback registration logic by integrating responsibilities from the (now removed) `ToolAnnotatedBeanProcessor`. This simplifies the auto-configuration flow for @tool annotated methods. - Deferred tool scanning and `MethodToolCallbackProvider` registration until `ApplicationReadyEvent`. This ensures that the operation occurs only after the application context and all relevant beans are fully initialized, enhancing stability. Signed-off-by: jitokim <[email protected]>
1 parent eddc5d8 commit 962d2ed

File tree

3 files changed

+195
-198
lines changed

3 files changed

+195
-198
lines changed

auto-configurations/common/spring-ai-autoconfigure-tool/src/main/java/org/springframework/ai/tool/autoconfigure/ToolAnnotatedBeanProcessor.java

Lines changed: 0 additions & 117 deletions
This file was deleted.

0 commit comments

Comments
 (0)