community[patch]: Fixing the SlackGetChannel Tool Input Error (#15725)

Fixed the issue mentioned in #15698 for SlackGetChannel Tool.

@baskaryan.

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
Mohammad Mohtashim 2024-01-16 00:23:55 +05:00 committed by GitHub
parent daa9ccae52
commit 9e779ca846
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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__)