Skip to content

Fix: Correctly handle invokable class tool handlers #47

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

Conversation

CodeWithKyrian
Copy link
Contributor

This PR resolves a ReflectionException that occurs when a tool handler is registered using an invokable class provided as a string. To prevent future regressions, this change also introduces a new suite of unit tests for RegisteredElement to ensure all supported handler types (invokable classes, closures, static methods, etc.) are functioning as expected.

Closes #46

@CodeWithKyrian CodeWithKyrian linked an issue Jul 9, 2025 that may be closed by this pull request
@CodeWithKyrian CodeWithKyrian merged commit 0535756 into main Jul 9, 2025
8 checks passed
@CodeWithKyrian CodeWithKyrian deleted the 46-bug-invokable-class-handlers-crash-in-registeredelementhandle branch July 9, 2025 12:20
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.

Bug: Invokable class handlers crash in RegisteredElement::handle()
1 participant