Commit Graph

10 Commits (d481d887bccea9ccbb1fecbfd053fe2acf078199)

Author SHA1 Message Date
Harrison Chase 485ecc3580
option for csv agent to not include df in prompt (#4610) 1 year ago
dev2049 36aa7f30e4
Move PythonRepl -> langchain.utilities (#2917) 1 year ago
KullTC 802363eb6a
Remove print statement from test (#2809)
Remove unnecessary print statement.
1 year ago
KullTC 64596b23b9
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.
1 year ago
Abhik Singla 955bd2e1db
Fixed Ast Python Repl for Chatgpt multiline commands (#2406)
Resolves issue https://github.com/hwchase17/langchain/issues/2252

---------

Co-authored-by: Abhik Singla <abhiksingla@microsoft.com>
1 year ago
Harrison Chase acfda4d1d8
Harrison/multiline commands (#2280)
Co-authored-by: Marc Päpper <mpaepper@users.noreply.github.com>
1 year ago
Ankush Gola 82baecc892
Add a SQL agent for interacting with SQL Databases and JSON Agent for interacting with large JSON blobs (#1150)
This PR adds 

* `ZeroShotAgent.as_sql_agent`, which returns an agent for interacting
with a sql database. This builds off of `SQLDatabaseChain`. The main
advantages are 1) answering general questions about the db, 2) access to
a tool for double checking queries, and 3) recovering from errors
* `ZeroShotAgent.as_json_agent` which returns an agent for interacting
with json blobs.
* Several examples in notebooks

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2 years ago
Harrison Chase cf98f219f9
Harrison/tools exp (#372) 2 years ago
Harrison Chase f5c665a544
combine python files (#256) 2 years ago
Harrison Chase fba30e07d1
factor out mock python repl (#43) 2 years ago