Skip to content

Commit

Permalink
community[patch]: Fixing the SlackGetChannel Tool Input Error (#15725)
Browse files Browse the repository at this point in the history
Fixed the issue mentioned in #15698 for SlackGetChannel Tool.

@baskaryan.

---------

Co-authored-by: Harrison Chase <[email protected]>
Co-authored-by: Bagatur <[email protected]>
  • Loading branch information
3 people authored Jan 15, 2024
1 parent daa9cca commit 9e779ca
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libs/community/langchain_community/tools/slack/get_channel.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json
import logging
from typing import Optional
from typing import Any, Optional

from langchain_core.callbacks import CallbackManagerForToolRun

Expand All @@ -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__)
Expand Down

0 comments on commit 9e779ca

Please sign in to comment.