langchain/tests/unit_tests/tools
Deepak S V 49ca02711e
Improved query, print & exception handling in REPL Tool (#4997)
Update to pull request https://github.com/hwchase17/langchain/pull/3215

Summary:
1) Improved the sanitization of query (using regex), by removing python
command (since gpt-3.5-turbo sometimes assumes python console as a
terminal, and runs python command first which causes error). Also
sometimes 1 line python codes contain single backticks.
2) Added 7 new test cases.

For more details, view the previous pull request.

---------

Co-authored-by: Deepak S V <svdeepak99@users.noreply.github.com>
2023-05-22 13:43:44 +00:00
..
file_management Add Other File Utilities (#3209) 2023-04-28 10:53:37 -07:00
openapi Add Request body (#2507) 2023-04-06 13:02:42 -07:00
powerbi power bi api wrapper integration tests & bug fix (#4983) 2023-05-19 11:25:52 -04:00
python Improved query, print & exception handling in REPL Tool (#4997) 2023-05-22 13:43:44 +00:00
requests tools refactor (#2961) 2023-04-17 21:35:29 -07:00
shell Accept str or list[str] for shell (#4060) 2023-05-03 21:11:06 -07:00
__init__.py Add a SQL agent for interacting with SQL Databases and JSON Agent for interacting with large JSON blobs (#1150) 2023-02-28 19:44:39 -08:00
test_base.py Pass parsed inputs through to tool _run (#4309) 2023-05-08 09:13:05 -07:00
test_exported.py Update some Tools Docs (#3913) 2023-05-01 19:07:26 -07:00
test_json.py Add a SQL agent for interacting with SQL Databases and JSON Agent for interacting with large JSON blobs (#1150) 2023-02-28 19:44:39 -08:00
test_public_api.py add the existing OpenWeatherMap tool to the public api (#4292) 2023-05-14 18:50:45 -07:00
test_signatures.py Pass parsed inputs through to tool _run (#4309) 2023-05-08 09:13:05 -07:00
test_zapier.py Allow custom base Zapier prompt (#4213) 2023-05-13 21:08:18 -07:00