mirror of
https://github.com/hwchase17/langchain.git
synced 2026-02-21 22:56:05 +00:00
option for csv agent to not include df in prompt (#4610)
This commit is contained in:
@@ -102,7 +102,7 @@ class PythonAstREPLTool(BaseTool):
|
||||
output = mystdout.getvalue()
|
||||
except Exception as e:
|
||||
sys.stdout = old_stdout
|
||||
output = str(e)
|
||||
output = repr(e)
|
||||
return output
|
||||
except Exception as e:
|
||||
return "{}: {}".format(type(e).__name__, str(e))
|
||||
|
||||
Reference in New Issue
Block a user