Files
langchain-python/langchain
Mandy Gu c841b2cc51 Expand requests tool into individual methods for load_tools (#2254)
### Motivation / Context

When exploring `load_tools(["requests"] )`, I would have expected all
request method tools to be imported instead of just `RequestsGetTool`.

### Changes

Break `_get_requests` into multiple functions by request method. Each
function returns the `BaseTool` for that particular request method.

In `load_tools`, if the tool name "requests_all" is encountered, we
replace with all `_BASE_TOOLS` that starts with `requests_`.

This way, `load_tools(["requests"])` returns:
- RequestsGetTool
- RequestsPostTool
- RequestsPatchTool
- RequestsPutTool
- RequestsDeleteTool
2023-04-03 15:59:52 -07:00
..
2023-04-01 12:52:08 -07:00
2023-03-22 23:15:04 -07:00
2023-04-02 14:57:45 -07:00
2023-03-14 12:37:48 -07:00
2023-03-14 20:00:22 -07:00
2023-04-02 14:57:45 -07:00
2023-04-02 14:04:09 -07:00
2023-04-01 08:59:04 -07:00
2023-04-01 12:54:06 -07:00
2023-04-02 14:57:45 -07:00
2022-10-24 14:51:15 -07:00
2022-11-12 11:22:32 -08:00
2023-03-30 20:41:56 -07:00
2023-03-30 10:14:05 -04:00
2023-02-20 21:15:45 -08:00
2023-04-01 12:52:08 -07:00
2023-01-19 14:48:30 -08:00