-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
I am using Spring AI version 1.0.0.3.
main error is "No ToolCallback found for tool name: terminate
java.lang.IllegalArgumentException: Functional bean with name generateSql does not exist in the context.
at org.springframework.ai.tool.resolution.TypeResolverHelper.getBeanDefinition(TypeResolverHelper.java:150)
at org.springframework.ai.tool.resolution.TypeResolverHelper.resolveBeanType(TypeResolverHelper.java:128)
at org.springframework.ai.tool.resolution.SpringBeanToolCallbackResolver.resolve(SpringBeanToolCallbackResolver.java:92)
java.lang.IllegalStateException: No ToolCallback found for tool name: terminate "
I have added the @tool annotation and injected the class into the Spring container, but I still get the error: "No ToolCallback found for tool name: terminate". I noticed that these tools are registered in the ReActChatClient object, but when the large language model tries to use the tools, it throws an error.
I can't figure out where the problem is. I'm asking for help from all the experts to point me in the right direction.