mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 16:48:30 +00:00
using GET in markdown
This commit is contained in:
@@ -18,7 +18,7 @@ class SerplyJobSearchTool(RagTool):
|
||||
request_url: str = "https://api.serply.io/v1/job/search/"
|
||||
proxy_location: Optional[str] = "US"
|
||||
"""
|
||||
proxy_location: (str): Where to get news, specifically for a specific country results.
|
||||
proxy_location: (str): Where to get jobs, specifically for a specific country results.
|
||||
- Currently only supports US
|
||||
"""
|
||||
headers: Optional[dict] = {}
|
||||
@@ -69,7 +69,7 @@ class SerplyJobSearchTool(RagTool):
|
||||
"---"
|
||||
]))
|
||||
except KeyError:
|
||||
next
|
||||
continue
|
||||
|
||||
content = '\n'.join(string)
|
||||
return f"\nSearch results: {content}\n"
|
||||
|
||||
@@ -73,7 +73,7 @@ class SerplyNewsSearchTool(BaseTool):
|
||||
"---"
|
||||
]))
|
||||
except KeyError:
|
||||
next
|
||||
continue
|
||||
|
||||
content = '\n'.join(string)
|
||||
return f"\nSearch results: {content}\n"
|
||||
|
||||
@@ -80,7 +80,7 @@ class SerplyScholarSearchTool(BaseTool):
|
||||
"---"
|
||||
]))
|
||||
except KeyError:
|
||||
next
|
||||
continue
|
||||
|
||||
content = '\n'.join(string)
|
||||
return f"\nSearch results: {content}\n"
|
||||
|
||||
@@ -85,7 +85,7 @@ class SerplyWebSearchTool(BaseTool):
|
||||
"---"
|
||||
]))
|
||||
except KeyError:
|
||||
next
|
||||
continue
|
||||
|
||||
content = '\n'.join(string)
|
||||
return f"\nSearch results: {content}\n"
|
||||
|
||||
@@ -41,7 +41,7 @@ class SerplyWebpageToMarkdownTool(RagTool):
|
||||
) -> Any:
|
||||
data = {
|
||||
"url": kwargs["url"],
|
||||
"method": "get",
|
||||
"method": "GET",
|
||||
"response_type": "markdown"
|
||||
}
|
||||
response = requests.request("POST", self.request_url, headers=self.headers, json=data)
|
||||
|
||||
Reference in New Issue
Block a user