community[patch]: docstrings update (#20301)

Added missed docstrings. Format docstings to the consistent form.
This commit is contained in:
Leonid Ganeline
2024-04-11 13:23:27 -07:00
committed by GitHub
parent 2900720cd3
commit 7cf2d2759d
77 changed files with 162 additions and 125 deletions

View File

@@ -8,8 +8,8 @@ from langchain_core.tools import BaseTool
class CogniswitchKnowledgeRequest(BaseTool):
"""
A tool for interacting with the Cogniswitch service to answer questions.
"""Tool that uses the Cogniswitch service to answer questions.
name: str = "cogniswitch_knowledge_request"
description: str = (
"A wrapper around cogniswitch service to answer the question
@@ -81,9 +81,9 @@ class CogniswitchKnowledgeRequest(BaseTool):
class CogniswitchKnowledgeStatus(BaseTool):
"""
A cogniswitch tool for interacting with the Cogniswitch services to know the
"""Tool that uses the Cogniswitch services to get the
status of the document or url uploaded.
name: str = "cogniswitch_knowledge_status"
description: str = (
"A wrapper around cogniswitch services to know the status of
@@ -181,8 +181,8 @@ class CogniswitchKnowledgeStatus(BaseTool):
class CogniswitchKnowledgeSourceFile(BaseTool):
"""
A cogniswitch tool for interacting with the Cogniswitch services to store data.
"""Tool that uses the Cogniswitch services to store data from file.
name: str = "cogniswitch_knowledge_source_file"
description: str = (
"This calls the CogniSwitch services to analyze & store data from a file.
@@ -294,8 +294,8 @@ class CogniswitchKnowledgeSourceFile(BaseTool):
class CogniswitchKnowledgeSourceURL(BaseTool):
"""
A cogniswitch tool for interacting with the Cogniswitch services to store data.
"""Tool that uses the Cogniswitch services to store data from a URL.
name: str = "cogniswitch_knowledge_source_url"
description: str = (
"This calls the CogniSwitch services to analyze & store data from a url.