Skip to content

Commit be414a4

Browse files
authored
Cli patch 2 (#25)
1 parent cfc2231 commit be414a4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/dull-years-serve.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ai-citizens/tools": patch
3+
---
4+
5+
api key catch

packages/tools/src/retrieve/web-search.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ export const basicWebSearch = new DynamicStructuredTool({
1515
},
1616
});
1717

18-
export const tavilyTool = new TavilySearchResults();
18+
export const tavilyTool = process.env.TAVILY_API_KEY
19+
? new TavilySearchResults()
20+
: null;

0 commit comments

Comments
 (0)