Skip to content

Conversation

@sunghyuk
Copy link

Remove redundant validateToolCallbacks() call as validation is already performed in the constructor

@ilayaperumalg
Copy link
Member

Hi @sunghyuk Thanks for the PR. But, the validation logic you removed checks for duplicate tools with the same name. Please see the test case in MethodToolCallbackProviderTests#whenMultipleToolObjectsWithSameToolNameThenThrow .

Closing this PR now. But, please re-open if you have a different point of view here. Thanks!

@sunghyukatkurly
Copy link

@ilayaperumalg Thanks for the review.
It seems unnecessary to validate again in the getToolCallbacks() method since validation has already been performed in the constructor.
Similarly, the MethodToolCallbackProviderTests#whenMultipleToolObjectsWithSameToolNameThenThrow test code also passes the constructor's validation.

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.

4 participants