Skip to content

The agent engineering platform.

fix: rename the invalid function name of GoogleSerperResults Tool for OpenAIFunctionCall (#7176)

Shuqianee1d488c036a
diff --git a/langchain/tools/google_serper/tool.py b/langchain/tools/google_serper/tool.py
index 18d584085e..a874e871e5 100644
--- a/langchain/tools/google_serper/tool.py
+++ b/langchain/tools/google_serper/tool.py
@@ -44,7 +44,7 @@ class GoogleSerperResults(BaseTool):
"""Tool that has capability to query the Serper.dev Google Search API
and get back json."""
- name = "Google Serrper Results JSON"
+ name = "google_serrper_results_json"
description = (
"A low-cost Google Search API."
"Useful for when you need to answer questions about current events."