mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-25 16:13:25 +00:00
add reqs (#918)
This commit is contained in:
parent
cea380174f
commit
cc20b9425e
@ -179,6 +179,20 @@ In order to load agents, you should understand the following concepts:
|
|||||||
|
|
||||||
**Tools**: For a list of predefined tools and their specifications, see [here](../modules/agents/tools.md).
|
**Tools**: For a list of predefined tools and their specifications, see [here](../modules/agents/tools.md).
|
||||||
|
|
||||||
|
For this example, you will also need to install the SerpAPI Python package.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install google-search-results
|
||||||
|
```
|
||||||
|
|
||||||
|
And set the appropriate environment variables.
|
||||||
|
|
||||||
|
```python
|
||||||
|
import os
|
||||||
|
os.environ["SERPAPI_API_KEY"] = "..."
|
||||||
|
```
|
||||||
|
|
||||||
|
Now we can get started!
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from langchain.agents import load_tools
|
from langchain.agents import load_tools
|
||||||
|
Loading…
Reference in New Issue
Block a user