mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
properly adding serper tool
This commit is contained in:
@@ -7,6 +7,7 @@ from .tools import (
|
|||||||
DirectoryReadTool,
|
DirectoryReadTool,
|
||||||
FileReadTool,
|
FileReadTool,
|
||||||
GithubSearchTool,
|
GithubSearchTool,
|
||||||
|
SeperDevTool,
|
||||||
TXTSearchTool,
|
TXTSearchTool,
|
||||||
JSONSearchTool,
|
JSONSearchTool,
|
||||||
MDXSearchTool,
|
MDXSearchTool,
|
||||||
|
|||||||
@@ -31,8 +31,6 @@ class SeperDevTool(BaseTool):
|
|||||||
results = response.json()['organic']
|
results = response.json()['organic']
|
||||||
stirng = []
|
stirng = []
|
||||||
for result in results:
|
for result in results:
|
||||||
print(result)
|
|
||||||
print('--------------')
|
|
||||||
try:
|
try:
|
||||||
stirng.append('\n'.join([
|
stirng.append('\n'.join([
|
||||||
f"Title: {result['title']}",
|
f"Title: {result['title']}",
|
||||||
|
|||||||
Reference in New Issue
Block a user