Update api_key default value in WebSearchTool

This commit is contained in:
Stan Girard 2024-05-10 23:49:08 +02:00
parent b60a31e561
commit 2f3cbb67d2

View File

@ -23,7 +23,7 @@ class WebSearchTool(BaseTool):
name = "brave-web-search"
description = "useful for when you need to search the web for something."
args_schema: Type[BaseModel] = WebSearchInput
api_key = os.getenv("BRAVE_SEARCH_API_KEY")
api_key: str = os.getenv("BRAVE_SEARCH_API_KEY", "")
def _check_environment_variable(self) -> bool:
"""Check if the environment variable is set."""