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

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-18 14:23:26 -03:00 committed by GitHub
commit ac1b6b6d1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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