🐛 fix(process.py): refactor fix_memory_inputs function to improve readability and reduce nesting
The fix_memory_inputs function was refactored to reduce nesting and improve readability. The function now checks if the langchain_object has a memory attribute and if it is not None before proceeding. The try-except block was also refactored to reduce nesting.
G
Gabriel Luiz Freitas Almeida committed
11185affdde27f0f9c71ddb8788e69aa55044d0d
Parent: 83c28dc