🐛 fix(process.py): handle unknown langchain_object types by returning the object as is instead of raising an exception

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-18 14:22:45 -03:00
commit eeab7bda05

View file

@ -131,6 +131,7 @@ def process_graph_cached(
result = langchain_object.dict()
else:
logger.warning(f"Unknown langchain_object type: {type(langchain_object)}")
result = langchain_object
return result