|
|
|
@ -54,7 +54,7 @@ class ToolNodeData(BaseNodeData, ToolEntity):
|
|
|
|
for val in value:
|
|
|
|
for val in value:
|
|
|
|
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):
|
|
|
|
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, or bool")
|
|
|
|
return typ
|
|
|
|
return typ
|
|
|
|
|
|
|
|
|
|
|
|
|