-
Notifications
You must be signed in to change notification settings - Fork 38
Refactor ToolDefinition architecture to use subclass pattern for all tools #971
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
xingyaoww
merged 24 commits into
main
from
openhands/simplify-tool-definition-architecture
Nov 3, 2025
Merged
Changes from 5 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
f2008ca
Refactor ToolDefinition architecture to use subclass pattern for all …
openhands-agent 38625a6
Merge ToolDefinition into ToolBase and fix all tests
openhands-agent eb569b9
Fix example file to use ToolBase instead of ToolDefinition
openhands-agent 5de1644
Fix polymorphic tool serialization with explicit type helper
openhands-agent 097b50d
Merge branch 'main' into openhands/simplify-tool-definition-architecture
simonrosenberg 085395c
Merge branch 'main' into openhands/simplify-tool-definition-architecture
xingyaoww 75a7484
Merge branch 'main' into openhands/simplify-tool-definition-architecture
xingyaoww 0f17f17
Prevent direct ToolBase instantiation and enforce subclass pattern
openhands-agent 43b074c
Merge ToolBase and ToolDefinition into single ToolDefinition class
openhands-agent 414a03f
Merge branch 'main' into openhands/simplify-tool-definition-architecture
xingyaoww 1894612
revert
xingyaoww 874b2db
revert polymorphic hacks
xingyaoww 95a7a1f
revert hacks
xingyaoww b99401f
Remove backward compatibility from browser_use tools
openhands-agent 8290cda
Refactor browser actions to use inheritance hierarchy instead of unio…
openhands-agent 3bbfe6d
Remove backward compatibility singleton comments
openhands-agent 3ef13a4
clean up definitions
xingyaoww d3667ab
fix
xingyaoww 3d362b7
try fix linter
xingyaoww 1d3e6b4
revert test
xingyaoww 0febb54
Merge branch 'main' into openhands/simplify-tool-definition-architecture
xingyaoww 4acf30d
Fix tests for tool definition refactoring
openhands-agent 3522c71
Merge main into openhands/simplify-tool-definition-architecture
openhands-agent 6172da0
Fix FinishTool.name reference after refactoring
openhands-agent 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
Some comments aren't visible on the classic Files Changed page.
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
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.