Tool search auto-configuration fails due to missing ToolCallingManager - Spring AI
search cancel

Tool search auto-configuration fails due to missing ToolCallingManager - Spring AI

book

Article ID: 446762

calendar_today

Updated On:

Products

VMware Tanzu Spring Essentials

Issue/Introduction

When setting spring.ai.chat.client.tool-search-advisor.enabled to true, tool searching does not execute. Reviewing logs via SimpleLoggerAdvisor reveals only two request/response pairs instead of the expected three (where the first request should only include the tool search tool). Auto-configuration fails due to the lack of a ToolCallingManager, even though the conditionals report indicates the bean is supposed to be created and the application context can provide one if requested.

Environment

Spring AI 2.0.0 GA

 

Cause

Auto-configuration for the tool calling advisor (ToolCallingAdvisorAutoConfiguration#toolCallingAdvisorBuilder) fails to properly locate or inject the ToolCallingManager bean during initialization. This prevents the tool search functionality from activating automatically through the provided properties.

Resolution

Targeted to be fixed in release 2.0.1.