🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
[bug] Fix the unnecessary warnings for using search_toolkit (#2845)
Xiaotian Jin9e4ac52e92e7
diff --git a/camel/toolkits/search_toolkit.py b/camel/toolkits/search_toolkit.pyindex f7ff30e07..af1f71c5f 100644--- a/camel/toolkits/search_toolkit.py+++ b/camel/toolkits/search_toolkit.py@@ -89,8 +89,8 @@ class SearchToolkit(BaseToolkit):depth (Literal["standard", "deep"]): The depth of the search."standard" for a straightforward search, "deep" for a morecomprehensive search.- output_type (Literal["searchResults", "sourcedAnswer",- "structured"]): The type of output:+ output_type (Literal["searchResults", "sourcedAnswer", "structured"]):+ The type of output:- "searchResults" for raw search results,- "sourcedAnswer" for an answer with supporting sources,- "structured" for output based on a provided schema.@@ -972,11 +972,10 @@ class SearchToolkit(BaseToolkit):Args:query (str): The search query string (length >= 1 and <= 100).- time_range (Literal["OneDay", "OneWeek", "OneMonth", "OneYear",- "NoLimit"]): Time frame filter for search results.+ time_range (Literal["OneDay", "OneWeek", "OneMonth", "OneYear", "NoLimit"]):+ Time frame filter for search results.(default: :obj:`"NoLimit"`)- industry (Optional[Literal["finance", "law", "medical",- "internet", "tax", "news_province", "news_center"]]):+ industry (Optional[Literal["finance", "law", "medical", "internet", "tax", "news_province", "news_center"]]):Industry-specific search filter. When specified, only returnsresults from sites in the specified industries. Multipleindustries can be comma-separated.diff --git a/pyproject.toml b/pyproject.tomlindex d45f71cb4..3317ff5b7 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -441,6 +441,9 @@ convention = "google"[tool.ruff.lint.isort]known-first-party = ["camel"]+[tool.ruff.lint.per-file-ignores]+"camel/toolkits/search_toolkit.py" = ["E501"]+[tool.pytest.ini_options]pythonpath = ["."]addopts = ["--strict-markers"]