From 9e779ca84647519e22ba38ee1bdc1be0523e066d Mon Sep 17 00:00:00 2001 From: Mohammad Mohtashim <45242107+keenborder786@users.noreply.github.com> Date: Tue, 16 Jan 2024 00:23:55 +0500 Subject: [PATCH] community[patch]: Fixing the SlackGetChannel Tool Input Error (#15725) Fixed the issue mentioned in #15698 for SlackGetChannel Tool. @baskaryan. --------- Co-authored-by: Harrison Chase Co-authored-by: Bagatur --- .../langchain_community/tools/slack/get_channel.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libs/community/langchain_community/tools/slack/get_channel.py b/libs/community/langchain_community/tools/slack/get_channel.py index 0ed5d817a20..a3dbe13939a 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 @@ -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. There is no input to this tool" + ) def _run( - self, - run_manager: Optional[CallbackManagerForToolRun] = None, + self, *args: Any, run_manager: Optional[CallbackManagerForToolRun] = None ) -> str: try: logging.getLogger(__name__)