Skip to content

The agent engineering platform.

Harrison/errors (#1276)

Harrison Chasebb53d9722d36
diff --git a/langchain/utilities/google_search.py b/langchain/utilities/google_search.py
index 95ded0d688..9b1ec5b6fd 100644
--- a/langchain/utilities/google_search.py
+++ b/langchain/utilities/google_search.py
@@ -86,7 +86,6 @@ class GoogleSearchAPIWrapper(BaseModel):
service = build("customsearch", "v1", developerKey=google_api_key)
values["search_engine"] = service
- # TODO: Add error handling if keys are missing
return values
def run(self, query: str) -> str:
diff --git a/langchain/utilities/wolfram_alpha.py b/langchain/utilities/wolfram_alpha.py
index d64ce410e7..a27aec051f 100644
--- a/langchain/utilities/wolfram_alpha.py
+++ b/langchain/utilities/wolfram_alpha.py
@@ -43,10 +43,8 @@ class WolframAlphaAPIWrapper(BaseModel):
"Please install it with `pip install wolframalpha`"
)
client = wolframalpha.Client(wolfram_alpha_appid)
-
values["wolfram_client"] = client
- # TODO: Add error handling if keys are missing
return values
def run(self, query: str) -> str: