Commit f8c2463
fix: Load .env before importing tools to ensure environment variables are available
- Move load_dotenv() to run before importing tools
- Ensures SERPER_API_KEY and other env vars are set before tool modules initialize
- Tools can now properly reference environment variables from .env file
- Fixes issue where tools couldn't access .env variables at import time
- Add noqa comments for necessary late imports
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 9298117 commit f8c2463
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | 47 | | |
50 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
0 commit comments