You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: unify exception handling and streamline tool execution logic
- Introduce `ExceptionHandlerTrait` in `AbstractTool` for consistent error handling across tools.
- Replace individual `execute` methods with a templated `doExecute` pattern in all tools, ensuring uniform processing.
- Standardize validation logic and replace inline error results with structured exceptions for enhanced clarity.
- Remove redundant methods like `initializeWorkspaceContext`, integrating them into `initialize` for improved abstraction.
- Enhance tools like `GetPageTool`, `GetPageTreeTool`, and `WriteTableTool` with refined validation, error messaging, and parameter handling.
- Update functional tests to align with these refactored patterns and improve overall coverage.
0 commit comments