-
Notifications
You must be signed in to change notification settings - Fork 39
Implement automatic tool registration on import #862
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
3d8703f
Implement automatic tool registration on import
openhands-agent eb4aa7e
Move automatic registration tests to tests/cross/
openhands-agent 8af24d1
Fix formatting issues from pre-commit hooks
openhands-agent c0b6545
Fix formatting after pre-commit hooks
openhands-agent f630648
Fix preset file to use tool_name instead of name attribute
openhands-agent 65708ba
Implement automatic tool naming using __init_subclass__
openhands-agent ae802db
Merge branch 'main' into openhands/simplify-tool-registration
malhotra5 9f89653
Merge branch 'main' into openhands/simplify-tool-registration
malhotra5 0e49991
merge main
malhotra5 f374924
automatic name field detection
malhotra5 de32a05
rename tool_name attribs
malhotra5 23883b1
Fix all .tool_name references to .name on ToolDefinition subclasses
openhands-agent 4de50d9
Fix mock tool tests to work with ClassVar name attribute
openhands-agent 1d8295a
Fix agent tool initialization test for ClassVar name attribute
openhands-agent da445b5
Fix security policy test to use correct tool name
openhands-agent d84e61e
Fix remaining test files with name= parameters and MCP tool property …
openhands-agent 285698e
Fix failing unit tests by correcting tool registration names
openhands-agent 1586ce5
Move test_automatic_naming.py to tests/cross/
openhands-agent ba99a58
Fix finish tool name consistency across agent and tests
openhands-agent d0a25c0
Fix tool name assertions in glob and grep tests
openhands-agent cf97f12
Merge branch 'main' into openhands/simplify-tool-registration
malhotra5 726e2c2
Apply suggestion from @malhotra5
malhotra5 abbbfde
Merge branch 'main' into openhands/simplify-tool-registration
malhotra5 d6f3395
Fix agent status reference to use ConversationExecutionStatus.FINISHED
openhands-agent 97a6991
Fix failing tests after implementing _tool suffix removal
openhands-agent cc879f5
Fix failing tests for new tool naming convention
openhands-agent 25758e3
Merge branch 'main' into openhands/simplify-tool-registration
malhotra5 dfd39c2
add warning
malhotra5 709ad78
Merge branch 'main' into openhands/simplify-tool-registration
malhotra5 97047d4
fix circular import
malhotra5 efce165
Merge branch 'openhands/simplify-tool-registration' of https://github…
malhotra5 adeae66
Update registry.py
malhotra5 9418487
replace hard coded string
malhotra5 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.