fix: Refactor PythonREPLToolComponent, update template, and add support for None value on secretStrInput (#3741)
* refactor: Refactor PythonREPLToolComponent to use pydantic and langchain_utilities * update template * add suport for None value on secretStrInput
This commit is contained in:
parent
0088b46aac
commit
d668424ef3
1 changed files with 2 additions and 0 deletions
|
|
@ -273,6 +273,8 @@ class SecretStrInput(BaseInputMixin, DatabaseLoadMixin):
|
|||
)
|
||||
elif isinstance(v, (AsyncIterator, Iterator)):
|
||||
value = v
|
||||
elif v is None:
|
||||
value = None
|
||||
else:
|
||||
raise ValueError(f"Invalid value type `{type(v)}` for input `{_info.data['name']}`")
|
||||
return value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue