Merge pull request #78 from wuloi/main

fixing serply_api_tool
This commit is contained in:
João Moura
2024-07-19 09:33:11 -07:00
committed by GitHub
3 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ from crewai_tools.tools.rag.rag_tool import RagTool
class SerplyJobSearchToolSchema(BaseModel):
"""Input for Serply Scholar Search."""
"""Input for Job Search."""
search_query: str = Field(..., description="Mandatory search query you want to use to fetch jobs postings.")

View File

@@ -13,7 +13,7 @@ class SerplyScholarSearchToolSchema(BaseModel):
class SerplyScholarSearchTool(BaseTool):
name: str = "Scholar Search"
description: str = "A tool to perform News article search with a search_query."
description: str = "A tool to perform scholarly literature search with a search_query."
args_schema: Type[BaseModel] = SerplyScholarSearchToolSchema
search_url: str = "https://api.serply.io/v1/scholar/"
hl: Optional[str] = "us"
@@ -29,7 +29,7 @@ class SerplyScholarSearchTool(BaseTool):
"""
param: hl (str): host Language code to display results in
(reference https://developers.google.com/custom-search/docs/xml_results?hl=en#wsInterfaceLanguages)
proxy_location: (str): Where to get news, specifically for a specific country results.
proxy_location: (str): Specify the proxy location for the search, specifically for a specific country results.
['US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'] (defaults to US)
"""
super().__init__(**kwargs)

View File

@@ -6,7 +6,7 @@ from crewai_tools.tools.rag.rag_tool import RagTool
class SerplyWebpageToMarkdownToolSchema(BaseModel):
"""Input for Serply Scholar Search."""
"""Input for Serply Search."""
url: str = Field(..., description="Mandatory url you want to use to fetch and convert to markdown")
@@ -24,7 +24,7 @@ class SerplyWebpageToMarkdownTool(RagTool):
**kwargs
):
"""
proxy_location: (str): Where to get news, specifically for a specific country results.
proxy_location: (str): Where to perform the search, specifically for a specific country results.
['US', 'CA', 'IE', 'GB', 'FR', 'DE', 'SE', 'IN', 'JP', 'KR', 'SG', 'AU', 'BR'] (defaults to US)
"""
super().__init__(**kwargs)