From 3ca13561b589782b38155949fda543997922ac78 Mon Sep 17 00:00:00 2001 From: keenborder786 <21110290@lums.edu.pk> Date: Tue, 9 Jan 2024 02:34:25 +0500 Subject: [PATCH 1/3] [fix] --- .../langchain_community/tools/slack/get_channel.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/community/langchain_community/tools/slack/get_channel.py b/libs/community/langchain_community/tools/slack/get_channel.py index 0ed5d817a20ec..dff968af87d1e 100644 --- a/libs/community/langchain_community/tools/slack/get_channel.py +++ b/libs/community/langchain_community/tools/slack/get_channel.py @@ -11,11 +11,12 @@ class SlackGetChannel(SlackBaseTool): """Tool that gets Slack channel information.""" name: str = "get_channelid_name_dict" - description: str = "Use this tool to get channelid-name dict." + description: str = ( + "Use this tool to get channelid-name dict. Their is no input to this tool" + ) def _run( - self, - run_manager: Optional[CallbackManagerForToolRun] = None, + self, *args, run_manager: Optional[CallbackManagerForToolRun] = None ) -> str: try: logging.getLogger(__name__) From 64d9b4cd2d61bcc54662310f6e5ae11b3e4be78a Mon Sep 17 00:00:00 2001 From: Harrison Chase Date: Thu, 11 Jan 2024 21:53:41 -0800 Subject: [PATCH 2/3] Update libs/community/langchain_community/tools/slack/get_channel.py --- libs/community/langchain_community/tools/slack/get_channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/community/langchain_community/tools/slack/get_channel.py b/libs/community/langchain_community/tools/slack/get_channel.py index dff968af87d1e..028eda57e2d48 100644 --- a/libs/community/langchain_community/tools/slack/get_channel.py +++ b/libs/community/langchain_community/tools/slack/get_channel.py @@ -12,7 +12,7 @@ class SlackGetChannel(SlackBaseTool): name: str = "get_channelid_name_dict" description: str = ( - "Use this tool to get channelid-name dict. Their is no input to this tool" + "Use this tool to get channelid-name dict. There is no input to this tool" ) def _run( From 27ae59a0eb11dc596289593890763a5873899436 Mon Sep 17 00:00:00 2001 From: Bagatur Date: Mon, 15 Jan 2024 11:07:05 -0800 Subject: [PATCH 3/3] fmt --- libs/community/langchain_community/tools/slack/get_channel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/community/langchain_community/tools/slack/get_channel.py b/libs/community/langchain_community/tools/slack/get_channel.py index 028eda57e2d48..a3dbe13939a19 100644 --- a/libs/community/langchain_community/tools/slack/get_channel.py +++ b/libs/community/langchain_community/tools/slack/get_channel.py @@ -1,6 +1,6 @@ import json import logging -from typing import Optional +from typing import Any, Optional from langchain_core.callbacks import CallbackManagerForToolRun @@ -16,7 +16,7 @@ class SlackGetChannel(SlackBaseTool): ) def _run( - self, *args, run_manager: Optional[CallbackManagerForToolRun] = None + self, *args: Any, run_manager: Optional[CallbackManagerForToolRun] = None ) -> str: try: logging.getLogger(__name__)