refactor ToolSwipe to delegate to existing tools instead of duplicating logic

- Modified ToolSwipe.ConvertActionToCallToolRequest to delegate to ToolSwipeDirection and ToolSwipeCoordinate
- Removed duplicate parameter handling logic in favor of reusing existing implementations
- Fixed linter error by removing unused variable
- Maintained backward compatibility while reducing code duplication
- All tests pass, confirming the refactoring is successful
This commit is contained in:
lilong.129
2025-05-26 22:42:50 +08:00
parent 6ae4c300c1
commit 8181e4244a
2 changed files with 25 additions and 123 deletions

View File

@@ -1 +1 @@
v5.0.0-beta-2505262239
v5.0.0-beta-2505262242