Skip to content

Fixed GH-3466: Fixed the logic error in the validateToolContextSupport method of MethodToolCallback #3478

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sunyuhan1998
Copy link
Contributor

Fixes #3466

As mentioned in the PR, there were some issues with the implementation of the validateToolContextSupport method in MethodToolCallback, which led to validation failures. This PR makes the following adjustments:

  1. Adjusted the parameter order when calling ClassUtils.isAssignable to ensure correct semantics.
  2. Modified the condition for throwing exceptions to align with the method's intended functionality.

…lidateToolContextSupport` method caused by incorrect parameter order.

Signed-off-by: Sun Yuhan <sunyuhan1998@users.noreply.github.com>
@sunyuhan1998 sunyuhan1998 changed the title Fixed the logic error in the validateToolContextSupport method of MethodToolCallback Fixed GH-34665: Fixed the logic error in the validateToolContextSupport method of MethodToolCallback Jun 9, 2025
@sunyuhan1998 sunyuhan1998 changed the title Fixed GH-34665: Fixed the logic error in the validateToolContextSupport method of MethodToolCallback Fixed GH-3466: Fixed the logic error in the validateToolContextSupport method of MethodToolCallback Jun 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong implementation of MethodToolCallback.validateToolContextSupport
1 participant