mirror of https://github.com/hwchase17/langchain
Return output of PythonAstREPLTool when falling back to exec() (#2780)
When the code ran by the PythonAstREPLTool contains multiple statements it will fallback to exec() instead of using eval(). With this change, it will also return the output of the code in the same way the PythonREPLTool will.pull/2805/head
parent
1bb0706955
commit
64596b23b9
Loading…
Reference in New Issue