Skip to content

No ToolCallback found for tool name: #4734

@ljhlovw

Description

@ljhlovw

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 "

Image Image Image 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions