mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 23:58:34 +00:00
Fix wrong comments / descriptions for SerperDevTool
This commit is contained in:
@@ -7,12 +7,12 @@ from pydantic.v1 import BaseModel, Field
|
|||||||
from crewai_tools.tools.base_tool import BaseTool
|
from crewai_tools.tools.base_tool import BaseTool
|
||||||
|
|
||||||
class SerperDevToolSchema(BaseModel):
|
class SerperDevToolSchema(BaseModel):
|
||||||
"""Input for TXTSearchTool."""
|
"""Input for SerperDevTool."""
|
||||||
search_query: str = Field(..., description="Mandatory search query you want to use to search the internet")
|
search_query: str = Field(..., description="Mandatory search query you want to use to search the internet")
|
||||||
|
|
||||||
class SerperDevTool(BaseTool):
|
class SerperDevTool(BaseTool):
|
||||||
name: str = "Search the internet"
|
name: str = "Search the internet"
|
||||||
description: str = "A tool that can be used to semantic search a query from a txt's content."
|
description: str = "A tool that can be used to search the internet."
|
||||||
args_schema: Type[BaseModel] = SerperDevToolSchema
|
args_schema: Type[BaseModel] = SerperDevToolSchema
|
||||||
search_url: str = "https://google.serper.dev/search"
|
search_url: str = "https://google.serper.dev/search"
|
||||||
n_results: int = None
|
n_results: int = None
|
||||||
|
|||||||
Reference in New Issue
Block a user