diff --git a/agentuniverse/agent/action/tool/common_tool/google_search_tool.py b/agentuniverse/agent/action/tool/common_tool/google_search_tool.py index e8cac4cc..7bcd6e92 100644 --- a/agentuniverse/agent/action/tool/common_tool/google_search_tool.py +++ b/agentuniverse/agent/action/tool/common_tool/google_search_tool.py @@ -19,7 +19,7 @@ class GoogleSearchTool(Tool): Implement the execute method of demo google search tool, using the `GoogleSerperAPIWrapper` to implement a simple Google search. Note: - You need to sign up for a free account at https://serper.dev and get the serpher api key (2500 free queries). + You need to sign up for a free account at https://serper.dev and get the serper api key (2500 free queries). """ serper_api_key: Optional[str] = Field(default_factory=lambda: get_from_env("SERPER_API_KEY")) diff --git a/docs/guidebook/en/In-Depth_Guides/Tutorials/Tool/Tool_Create_And_Use.md b/docs/guidebook/en/In-Depth_Guides/Tutorials/Tool/Tool_Create_And_Use.md index 786cc08b..fbbbb328 100644 --- a/docs/guidebook/en/In-Depth_Guides/Tutorials/Tool/Tool_Create_And_Use.md +++ b/docs/guidebook/en/In-Depth_Guides/Tutorials/Tool/Tool_Create_And_Use.md @@ -61,7 +61,7 @@ class GoogleSearchTool(Tool): Implement the execute method of demo google search tool, using the `GoogleSerperAPIWrapper` to implement a simple Google search. Note: - You need to sign up for a free account at https://serper.dev and get the serpher api key (2500 free queries). + You need to sign up for a free account at https://serper.dev and get the serper api key (2500 free queries). """ def execute(self, tool_input: ToolInput): diff --git a/docs/guidebook/zh/In-Depth_Guides/原理介绍/工具/工具创建与使用.md b/docs/guidebook/zh/In-Depth_Guides/原理介绍/工具/工具创建与使用.md index c7555edd..e91f0d6a 100644 --- a/docs/guidebook/zh/In-Depth_Guides/原理介绍/工具/工具创建与使用.md +++ b/docs/guidebook/zh/In-Depth_Guides/原理介绍/工具/工具创建与使用.md @@ -61,7 +61,7 @@ class GoogleSearchTool(Tool): Implement the execute method of demo google search tool, using the `GoogleSerperAPIWrapper` to implement a simple Google search. Note: - You need to sign up for a free account at https://serper.dev and get the serpher api key (2500 free queries). + You need to sign up for a free account at https://serper.dev and get the serper api key (2500 free queries). """ def execute(self, input: str): diff --git a/examples/sample_apps/data_agent_app/intelligence/agentic/tool/google_search_tool.py b/examples/sample_apps/data_agent_app/intelligence/agentic/tool/google_search_tool.py index 1e8b7954..1467659d 100644 --- a/examples/sample_apps/data_agent_app/intelligence/agentic/tool/google_search_tool.py +++ b/examples/sample_apps/data_agent_app/intelligence/agentic/tool/google_search_tool.py @@ -18,7 +18,7 @@ class GoogleSearchTool(Tool): Implement the execute method of demo google search tool, using the `GoogleSerperAPIWrapper` to implement a simple Google search. Note: - You need to sign up for a free account at https://serper.dev and get the serpher api key (2500 free queries). + You need to sign up for a free account at https://serper.dev and get the serper api key (2500 free queries). """ serper_api_key: Optional[str] = Field(default_factory=lambda: get_from_env("SERPER_API_KEY")) @@ -26,4 +26,4 @@ class GoogleSearchTool(Tool): def execute(self, input: str): # get top10 results from Google search. search = GoogleSerperAPIWrapper(serper_api_key=self.serper_api_key, k=10, gl="us", hl="en", type="search") - return search.run(query=input) \ No newline at end of file + return search.run(query=input) diff --git a/examples/sample_apps/difizen_app/intelligence/agentic/tool/google_search_tool.py b/examples/sample_apps/difizen_app/intelligence/agentic/tool/google_search_tool.py index 2b7271b8..4f50204e 100644 --- a/examples/sample_apps/difizen_app/intelligence/agentic/tool/google_search_tool.py +++ b/examples/sample_apps/difizen_app/intelligence/agentic/tool/google_search_tool.py @@ -19,7 +19,7 @@ class GoogleSearchTool(Tool): Implement the execute method of demo google search tool, using the `GoogleSerperAPIWrapper` to implement a simple Google search. Note: - You need to sign up for a free account at https://serper.dev and get the serpher api key (2500 free queries). + You need to sign up for a free account at https://serper.dev and get the serper api key (2500 free queries). """ serper_api_key: Optional[str] = Field(default_factory=lambda: get_from_env("SERPER_API_KEY")) diff --git a/examples/sample_apps/discussion_group_app/intelligence/agentic/tool/google_search_tool.py b/examples/sample_apps/discussion_group_app/intelligence/agentic/tool/google_search_tool.py index 33164859..d7b326d0 100644 --- a/examples/sample_apps/discussion_group_app/intelligence/agentic/tool/google_search_tool.py +++ b/examples/sample_apps/discussion_group_app/intelligence/agentic/tool/google_search_tool.py @@ -17,7 +17,7 @@ class GoogleSearchTool(Tool): Implement the execute method of demo google search tool, using the `GoogleSerperAPIWrapper` to implement a simple Google search. Note: - You need to sign up for a free account at https://serper.dev and get the serpher api key (2500 free queries). + You need to sign up for a free account at https://serper.dev and get the serper api key (2500 free queries). """ serper_api_key: Optional[str] = Field(default_factory=lambda: get_from_env("SERPER_API_KEY")) @@ -25,4 +25,4 @@ class GoogleSearchTool(Tool): def execute(self, input: str): # get top10 results from Google search. search = GoogleSerperAPIWrapper(serper_api_key=self.serper_api_key, k=10, gl="us", hl="en", type="search") - return search.run(query=input) \ No newline at end of file + return search.run(query=input) diff --git a/examples/sample_apps/multimodal_app/intelligence/agentic/tool/google_search_tool.py b/examples/sample_apps/multimodal_app/intelligence/agentic/tool/google_search_tool.py index dcffb60e..31e51f6b 100644 --- a/examples/sample_apps/multimodal_app/intelligence/agentic/tool/google_search_tool.py +++ b/examples/sample_apps/multimodal_app/intelligence/agentic/tool/google_search_tool.py @@ -19,7 +19,7 @@ class GoogleSearchTool(Tool): Implement the execute method of demo google search tool, using the `GoogleSerperAPIWrapper` to implement a simple Google search. Note: - You need to sign up for a free account at https://serper.dev and get the serpher api key (2500 free queries). + You need to sign up for a free account at https://serper.dev and get the serper api key (2500 free queries). """ serper_api_key: Optional[str] = Field(default_factory=lambda: get_from_env("SERPER_API_KEY")) diff --git a/examples/sample_apps/openai_protocol_app/intelligence/agentic/tool/google_search_tool.py b/examples/sample_apps/openai_protocol_app/intelligence/agentic/tool/google_search_tool.py index 33164859..d7b326d0 100644 --- a/examples/sample_apps/openai_protocol_app/intelligence/agentic/tool/google_search_tool.py +++ b/examples/sample_apps/openai_protocol_app/intelligence/agentic/tool/google_search_tool.py @@ -17,7 +17,7 @@ class GoogleSearchTool(Tool): Implement the execute method of demo google search tool, using the `GoogleSerperAPIWrapper` to implement a simple Google search. Note: - You need to sign up for a free account at https://serper.dev and get the serpher api key (2500 free queries). + You need to sign up for a free account at https://serper.dev and get the serper api key (2500 free queries). """ serper_api_key: Optional[str] = Field(default_factory=lambda: get_from_env("SERPER_API_KEY")) @@ -25,4 +25,4 @@ class GoogleSearchTool(Tool): def execute(self, input: str): # get top10 results from Google search. search = GoogleSerperAPIWrapper(serper_api_key=self.serper_api_key, k=10, gl="us", hl="en", type="search") - return search.run(query=input) \ No newline at end of file + return search.run(query=input) diff --git a/examples/sample_apps/peer_agent_app/intelligence/agentic/tool/google_search_tool.py b/examples/sample_apps/peer_agent_app/intelligence/agentic/tool/google_search_tool.py index 33164859..2ae580c9 100644 --- a/examples/sample_apps/peer_agent_app/intelligence/agentic/tool/google_search_tool.py +++ b/examples/sample_apps/peer_agent_app/intelligence/agentic/tool/google_search_tool.py @@ -17,12 +17,20 @@ class GoogleSearchTool(Tool): Implement the execute method of demo google search tool, using the `GoogleSerperAPIWrapper` to implement a simple Google search. Note: - You need to sign up for a free account at https://serper.dev and get the serpher api key (2500 free queries). + You need to sign up for a free account at https://serper.dev and get the serper api key (2500 free queries). """ serper_api_key: Optional[str] = Field(default_factory=lambda: get_from_env("SERPER_API_KEY")) def execute(self, input: str): - # get top10 results from Google search. + """Execute Google search and return top 10 results. + + Args: + input (str): The search query string + + Returns: + str: Search results from Google in text format + """ + # Configure Google search with top 10 results, US region, English language search = GoogleSerperAPIWrapper(serper_api_key=self.serper_api_key, k=10, gl="us", hl="en", type="search") - return search.run(query=input) \ No newline at end of file + return search.run(query=input) diff --git a/examples/sample_apps/rag_app/intelligence/agentic/tool/google_search_tool.py b/examples/sample_apps/rag_app/intelligence/agentic/tool/google_search_tool.py index 33164859..d7b326d0 100644 --- a/examples/sample_apps/rag_app/intelligence/agentic/tool/google_search_tool.py +++ b/examples/sample_apps/rag_app/intelligence/agentic/tool/google_search_tool.py @@ -17,7 +17,7 @@ class GoogleSearchTool(Tool): Implement the execute method of demo google search tool, using the `GoogleSerperAPIWrapper` to implement a simple Google search. Note: - You need to sign up for a free account at https://serper.dev and get the serpher api key (2500 free queries). + You need to sign up for a free account at https://serper.dev and get the serper api key (2500 free queries). """ serper_api_key: Optional[str] = Field(default_factory=lambda: get_from_env("SERPER_API_KEY")) @@ -25,4 +25,4 @@ class GoogleSearchTool(Tool): def execute(self, input: str): # get top10 results from Google search. search = GoogleSerperAPIWrapper(serper_api_key=self.serper_api_key, k=10, gl="us", hl="en", type="search") - return search.run(query=input) \ No newline at end of file + return search.run(query=input) diff --git a/examples/sample_apps/react_agent_app/intelligence/agentic/tool/google_search_tool.py b/examples/sample_apps/react_agent_app/intelligence/agentic/tool/google_search_tool.py index 33164859..d7b326d0 100644 --- a/examples/sample_apps/react_agent_app/intelligence/agentic/tool/google_search_tool.py +++ b/examples/sample_apps/react_agent_app/intelligence/agentic/tool/google_search_tool.py @@ -17,7 +17,7 @@ class GoogleSearchTool(Tool): Implement the execute method of demo google search tool, using the `GoogleSerperAPIWrapper` to implement a simple Google search. Note: - You need to sign up for a free account at https://serper.dev and get the serpher api key (2500 free queries). + You need to sign up for a free account at https://serper.dev and get the serper api key (2500 free queries). """ serper_api_key: Optional[str] = Field(default_factory=lambda: get_from_env("SERPER_API_KEY")) @@ -25,4 +25,4 @@ class GoogleSearchTool(Tool): def execute(self, input: str): # get top10 results from Google search. search = GoogleSerperAPIWrapper(serper_api_key=self.serper_api_key, k=10, gl="us", hl="en", type="search") - return search.run(query=input) \ No newline at end of file + return search.run(query=input) diff --git a/examples/sample_apps/translation_agent_app/intelligence/agentic/tool/google_search_tool.py b/examples/sample_apps/translation_agent_app/intelligence/agentic/tool/google_search_tool.py index 1e8b7954..1467659d 100644 --- a/examples/sample_apps/translation_agent_app/intelligence/agentic/tool/google_search_tool.py +++ b/examples/sample_apps/translation_agent_app/intelligence/agentic/tool/google_search_tool.py @@ -18,7 +18,7 @@ class GoogleSearchTool(Tool): Implement the execute method of demo google search tool, using the `GoogleSerperAPIWrapper` to implement a simple Google search. Note: - You need to sign up for a free account at https://serper.dev and get the serpher api key (2500 free queries). + You need to sign up for a free account at https://serper.dev and get the serper api key (2500 free queries). """ serper_api_key: Optional[str] = Field(default_factory=lambda: get_from_env("SERPER_API_KEY")) @@ -26,4 +26,4 @@ class GoogleSearchTool(Tool): def execute(self, input: str): # get top10 results from Google search. search = GoogleSerperAPIWrapper(serper_api_key=self.serper_api_key, k=10, gl="us", hl="en", type="search") - return search.run(query=input) \ No newline at end of file + return search.run(query=input) diff --git a/examples/sample_apps/workflow_agent_app/intelligence/agentic/tool/google_search_tool.py b/examples/sample_apps/workflow_agent_app/intelligence/agentic/tool/google_search_tool.py index 33164859..d7b326d0 100644 --- a/examples/sample_apps/workflow_agent_app/intelligence/agentic/tool/google_search_tool.py +++ b/examples/sample_apps/workflow_agent_app/intelligence/agentic/tool/google_search_tool.py @@ -17,7 +17,7 @@ class GoogleSearchTool(Tool): Implement the execute method of demo google search tool, using the `GoogleSerperAPIWrapper` to implement a simple Google search. Note: - You need to sign up for a free account at https://serper.dev and get the serpher api key (2500 free queries). + You need to sign up for a free account at https://serper.dev and get the serper api key (2500 free queries). """ serper_api_key: Optional[str] = Field(default_factory=lambda: get_from_env("SERPER_API_KEY")) @@ -25,4 +25,4 @@ class GoogleSearchTool(Tool): def execute(self, input: str): # get top10 results from Google search. search = GoogleSerperAPIWrapper(serper_api_key=self.serper_api_key, k=10, gl="us", hl="en", type="search") - return search.run(query=input) \ No newline at end of file + return search.run(query=input) diff --git a/examples/sample_standard_app/intelligence/agentic/tool/custom/demo_search_tool.py b/examples/sample_standard_app/intelligence/agentic/tool/custom/demo_search_tool.py index a6f71ee6..8ed08b9c 100644 --- a/examples/sample_standard_app/intelligence/agentic/tool/custom/demo_search_tool.py +++ b/examples/sample_standard_app/intelligence/agentic/tool/custom/demo_search_tool.py @@ -19,7 +19,7 @@ class DemoSearchTool(Tool): Implement the execute method of demo google search tool, using the `GoogleSerperAPIWrapper` to implement a simple Google search. Note: - You need to sign up for a free account at https://serper.dev and get the serpher api key (2500 free queries). + You need to sign up for a free account at https://serper.dev and get the serper api key (2500 free queries). """ serper_api_key: Optional[str] = Field(default_factory=lambda: get_from_env("SERPER_API_KEY")) diff --git a/examples/startup_app/demo_startup_app_with_single_agent_and_memory/intelligence/agentic/tool/google_search_tool.py b/examples/startup_app/demo_startup_app_with_single_agent_and_memory/intelligence/agentic/tool/google_search_tool.py index a9b26d89..3eb98722 100644 --- a/examples/startup_app/demo_startup_app_with_single_agent_and_memory/intelligence/agentic/tool/google_search_tool.py +++ b/examples/startup_app/demo_startup_app_with_single_agent_and_memory/intelligence/agentic/tool/google_search_tool.py @@ -19,7 +19,7 @@ class GoogleSearchTool(Tool): Implement the execute method of demo google search tool, using the `GoogleSerperAPIWrapper` to implement a simple Google search. Note: - You need to sign up for a free account at https://serper.dev and get the serpher api key (2500 free queries). + You need to sign up for a free account at https://serper.dev and get the serper api key (2500 free queries). """ serper_api_key: Optional[str] = Field(default_factory=lambda: get_from_env("SERPER_API_KEY")) @@ -27,4 +27,4 @@ class GoogleSearchTool(Tool): def execute(self, input: str): # get top10 results from Google search. search = GoogleSerperAPIWrapper(serper_api_key=self.serper_api_key, k=10, gl="us", hl="en", type="search") - return search.run(query=input) \ No newline at end of file + return search.run(query=input)