Updated TAVILY Key Setup (#5346)

This commit is contained in:
Shivang Agarwal
2025-07-07 00:36:28 +00:00
committed by GitHub
parent cac0cd5522
commit d8756f257e
@@ -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