mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-08 18:57:52 +02:00
Updated TAVILY Key Setup (#5346)
This commit is contained in:
@@ -23,12 +23,16 @@ pip install -U langchain-tavily
|
||||
|
||||
Configure your environment with your search engine API key:
|
||||
|
||||
```bash
|
||||
```python
|
||||
def _set_env(var: str):
|
||||
if not os.environ.get(var):
|
||||
os.environ[var] = getpass.getpass(f"{var}: ")
|
||||
|
||||
_set_env("TAVILY_API_KEY")
|
||||
```
|
||||
|
||||
```
|
||||
TAVILY_API_KEY: ········
|
||||
os.environ["TAVILY_API_KEY"]: "········"
|
||||
```
|
||||
|
||||
## 3. Define the tool
|
||||
|
||||
Reference in New Issue
Block a user