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
fix(toolbox-core): Prevent rebinding of parameters in ToolboxTool (#186)
* fix(toolbox-core): Prevent rebinding of parameters in ToolboxTool
This pull request updates the `bind_parameters` helper function within the `ToolboxTool` of the `toolbox-core` package to enhance parameter binding management.
* The helper now throws an explicit error if a user attempts to bind a parameter that has already been bound. This change aims to prevent unexpected behavior and improve the clarity of parameter assignments.
* The error that previously occurred when a user tried to bind a parameter not present in the tool's schema has been removed. This validation will be handled by a `strict` mode implementation in a future PR.
* chore: Update unit test case
* chore: Delint
* fix: Add the no parameter check back again.
We will remove this once we actually implement the `strict` flag and centralize this functionality by moving this check to the tool's constructor in a future PR.
* fix: Reverse the error conditions to avoid masking of the second error.
* chore: Fix unit test cases.
* chore: Make unit test more robust.
* chore: Delint
0 commit comments