Skip to content

Commit

Permalink
fix: Refactor PythonREPLToolComponent, update template, and add suppo…
Browse files Browse the repository at this point in the history
…rt for None value on secretStrInput (#3741)

* refactor: Refactor PythonREPLToolComponent to use pydantic and langchain_utilities

* update template

* add suport for None value on secretStrInput
  • Loading branch information
anovazzi1 authored Sep 10, 2024
1 parent 0088b46 commit d668424
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backend/base/langflow/inputs/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ def validate_value(cls, v: Any, _info):
)
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
Expand Down

0 comments on commit d668424

Please sign in to comment.