🐛 fix(process.py): handle unknown langchain_object types by returning the object as is instead of raising an exception
This commit is contained in:
parent
15a96b63d9
commit
eeab7bda05
1 changed files with 1 additions and 0 deletions
|
|
@ -131,6 +131,7 @@ def process_graph_cached(
|
||||||
result = langchain_object.dict()
|
result = langchain_object.dict()
|
||||||
else:
|
else:
|
||||||
logger.warning(f"Unknown langchain_object type: {type(langchain_object)}")
|
logger.warning(f"Unknown langchain_object type: {type(langchain_object)}")
|
||||||
|
result = langchain_object
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue