option for csv agent to not include df in prompt (#4610)

This commit is contained in:
Harrison Chase
2023-05-12 21:55:22 -07:00
committed by GitHub
parent 7d425cbf38
commit 485ecc3580
5 changed files with 35 additions and 11 deletions

View File

@@ -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))