langchain/tests/unit_tests
Shrined 10dab053b4
Add Enum for agent types (#2321)
This pull request adds an enum class for the various types of agents
used in the project, located in the `agent_types.py` file. Currently,
the project is using hardcoded strings for the initialization of these
agents, which can lead to errors and make the code harder to maintain.
With the introduction of the new enums, the code will be more readable
and less error-prone.

The new enum members include:

- ZERO_SHOT_REACT_DESCRIPTION
- REACT_DOCSTORE
- SELF_ASK_WITH_SEARCH
- CONVERSATIONAL_REACT_DESCRIPTION
- CHAT_ZERO_SHOT_REACT_DESCRIPTION
- CHAT_CONVERSATIONAL_REACT_DESCRIPTION

In this PR, I have also replaced the hardcoded strings with the
appropriate enum members throughout the codebase, ensuring a smooth
transition to the new approach.
2023-04-03 21:56:20 -07:00
..
agents Add Enum for agent types (#2321) 2023-04-03 21:56:20 -07:00
callbacks (rfc) chat models (#1424) 2023-03-06 08:34:24 -08:00
chains skip unit tests that fail in Windows (#2238) 2023-04-01 12:52:21 -07:00
data Prompt from file proof of concept using plain text (#127) 2022-11-13 13:15:30 -08:00
docstore Harrison/document cleanup (#2062) 2023-03-27 16:32:55 -07:00
document_loader rm pandas dependency (#2102) 2023-03-28 08:38:19 -07:00
llms (rfc) chat models (#1424) 2023-03-06 08:34:24 -08:00
output_parsers PydanticOutputParser unit test (#2047) 2023-03-27 14:32:56 -07:00
prompts big docs refactor (#1978) 2023-03-26 19:49:46 -07:00
tools 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
utilities Centralize logic for loading from LangChainHub, add ability to pin dependencies (#805) 2023-01-30 14:52:17 -08:00
__init__.py initial commit 2022-10-24 14:51:15 -07:00
test_bash.py skip unit tests that fail in Windows (#2238) 2023-04-01 12:52:21 -07:00
test_formatting.py initial commit 2022-10-24 14:51:15 -07:00
test_python.py Harrison/multiline commands (#2280) 2023-04-01 12:54:06 -07:00
test_sql_database_schema.py sql: do not hard code the LIMIT clause in the table_info section (#1563) 2023-03-13 23:08:27 -07:00
test_sql_database.py sql: do not hard code the LIMIT clause in the table_info section (#1563) 2023-03-13 23:08:27 -07:00
test_text_splitter.py Harrison/shallow metadata (#1599) 2023-03-11 09:18:25 -08:00