minor fix: fix error messages (#23081)
This commit is contained in:
@@ -55,7 +55,7 @@ class ToolNodeData(BaseNodeData, ToolEntity):
|
|||||||
if not isinstance(val, str):
|
if not isinstance(val, str):
|
||||||
raise ValueError("value must be a list of strings")
|
raise ValueError("value must be a list of strings")
|
||||||
elif typ == "constant" and not isinstance(value, str | int | float | bool | dict):
|
elif typ == "constant" and not isinstance(value, str | int | float | bool | dict):
|
||||||
raise ValueError("value must be a string, int, float, or bool")
|
raise ValueError("value must be a string, int, float, bool or dict")
|
||||||
return typ
|
return typ
|
||||||
|
|
||||||
tool_parameters: dict[str, ToolInput]
|
tool_parameters: dict[str, ToolInput]
|
||||||
|
Reference in New Issue
Block a user