Skip to content

fix(tool): handle non-existing tool callbacks gracefully #3019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

tzolov
Copy link
Contributor

@tzolov tzolov commented May 7, 2025

  • Add error handling to SpringBeanToolCallbackResolver to return null instead of throwing exceptions when resolving non-existing tools. This make is consitent with other tool resolver implementations and centralize the error handling in the tool calling manager.
  • Add test to verify that the ToolCallbackResolver correctly returns null for non-existing tools.

Related to #2667

- Add error handling to SpringBeanToolCallbackResolver to return null
  instead of throwing exceptions when resolving non-existing tools.
  This make is consitent with other tool resolver implementations
  and centralize the error handling in the tool calling manager.
- Add test to verify that the ToolCallbackResolver correctly
  returns null for non-existing tools.

Related to spring-projects#2667

Signed-off-by: Christian Tzolov <[email protected]>
@tzolov tzolov force-pushed the improve-tool-resolution-consitency branch from c891e1c to 5491b96 Compare May 8, 2025 08:53
@ilayaperumalg
Copy link
Member

Rebased and merged as e010899

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants