add brave search tool

This commit is contained in:
siddas27
2024-11-30 14:04:06 -06:00
parent 601abb2bc3
commit 6c242ef3bb
3 changed files with 125 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
from crewai_tools.tools.brave_search_tool.brave_search_tool import BraveSearchTool
def test_brave_tool():
tool = BraveSearchTool(
n_results=2,
)
print(tool.run(search_query="ChatGPT"))
if __name__ == "__main__":
test_brave_tool()