community[patch]: Fixed tool names snake_case (#16397)

#16396
Fixed
1. golden_query
2. google_lens
3. memorize
4. merriam_webster
5. open_weather_map
6. pub_med
7. stack_exchange
8. generate_image
9. wikipedia
This commit is contained in:
Jatin Chawda 2024-01-26 00:24:19 +01:00 committed by GitHub
parent bcc71d1a57
commit a79345f199
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 14 additions and 14 deletions

View File

@ -44,7 +44,7 @@ class DataForSeoAPISearchResults(BaseTool):
"""Tool that queries the DataForSeo Google Search API
and get back json."""
name: str = "DataForSeo-Results-JSON"
name: str = "dataforseo_results_json"
description: str = (
"A comprehensive Google Search API provided by DataForSeo."
"This tool is useful for obtaining real-time data on current events "

View File

@ -42,7 +42,7 @@ class DuckDuckGoSearchRun(BaseTool):
class DuckDuckGoSearchResults(BaseTool):
"""Tool that queries the DuckDuckGo search API and gets back json."""
name: str = "DuckDuckGo Results JSON"
name: str = "duckduckgo_results_json"
description: str = (
"A wrapper around Duck Duck Go Search. "
"Useful for when you need to answer questions about current events. "

View File

@ -11,7 +11,7 @@ from langchain_community.utilities.golden_query import GoldenQueryAPIWrapper
class GoldenQueryRun(BaseTool):
"""Tool that adds the capability to query using the Golden API and get back JSON."""
name: str = "Golden-Query"
name: str = "golden_query"
description: str = (
"A wrapper around Golden Query API."
" Useful for getting entities that match"

View File

@ -11,7 +11,7 @@ from langchain_community.utilities.google_lens import GoogleLensAPIWrapper
class GoogleLensQueryRun(BaseTool):
"""Tool that queries the Google Lens API."""
name: str = "google_Lens"
name: str = "google_lens"
description: str = (
"A wrapper around Google Lens Search. "
"Useful for when you need to get information related"

View File

@ -31,7 +31,7 @@ class GoogleSearchRun(BaseTool):
class GoogleSearchResults(BaseTool):
"""Tool that queries the Google Search API and gets back json."""
name: str = "Google Search Results JSON"
name: str = "google_search_results_json"
description: str = (
"A wrapper around Google Search. "
"Useful for when you need to answer questions about current events. "

View File

@ -35,7 +35,7 @@ class TrainableLLM(Protocol):
class Memorize(BaseTool):
"""Tool that trains a language model."""
name: str = "Memorize"
name: str = "memorize"
description: str = (
"Useful whenever you observed novel information "
"from previous conversation history, "

View File

@ -11,7 +11,7 @@ from langchain_community.utilities.merriam_webster import MerriamWebsterAPIWrapp
class MerriamWebsterQueryRun(BaseTool):
"""Tool that searches the Merriam-Webster API."""
name: str = "MerriamWebster"
name: str = "merriam_webster"
description: str = (
"A wrapper around Merriam-Webster. "
"Useful for when you need to get the definition of a word."

View File

@ -16,7 +16,7 @@ class OpenWeatherMapQueryRun(BaseTool):
default_factory=OpenWeatherMapAPIWrapper
)
name: str = "OpenWeatherMap"
name: str = "open_weather_map"
description: str = (
"A wrapper around OpenWeatherMap API. "
"Useful for fetching current weather information for a specified location. "

View File

@ -10,7 +10,7 @@ from langchain_community.utilities.pubmed import PubMedAPIWrapper
class PubmedQueryRun(BaseTool):
"""Tool that searches the PubMed API."""
name: str = "PubMed"
name: str = "pub_med"
description: str = (
"A wrapper around PubMed. "
"Useful for when you need to answer questions about medicine, health, "

View File

@ -43,7 +43,7 @@ class SearxSearchRun(BaseTool):
class SearxSearchResults(BaseTool):
"""Tool that queries a Searx instance and gets back json."""
name: str = "Searx-Search-Results"
name: str = "searx_search_results"
description: str = (
"A meta search engine."
"Useful for when you need to answer questions about current events."

View File

@ -11,7 +11,7 @@ from langchain_community.utilities.stackexchange import StackExchangeAPIWrapper
class StackExchangeTool(BaseTool):
"""Tool that uses StackExchange"""
name: str = "StackExchange"
name: str = "stack_exchange"
description: str = (
"A wrapper around StackExchange. "
"Useful for when you need to answer specific programming questions"

View File

@ -12,7 +12,7 @@ class SteamWebAPIQueryRun(BaseTool):
"""Tool that searches the Steam Web API."""
mode: str
name: str = "Steam"
name: str = "steam"
description: str = (
"A wrapper around Steam Web API."
"Steam Tool is useful for fetching User profiles and stats, Game data and more!"

View File

@ -49,7 +49,7 @@ class SteamshipImageGenerationTool(BaseTool):
steamship: Steamship
return_urls: Optional[bool] = False
name: str = "GenerateImage"
name: str = "generate_image"
description: str = (
"Useful for when you need to generate an image."
"Input: A detailed text-2-image prompt describing an image"

View File

@ -11,7 +11,7 @@ from langchain_community.utilities.wikipedia import WikipediaAPIWrapper
class WikipediaQueryRun(BaseTool):
"""Tool that searches the Wikipedia API."""
name: str = "Wikipedia"
name: str = "wikipedia"
description: str = (
"A wrapper around Wikipedia. "
"Useful for when you need to answer general questions about "