mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-25 08:03:39 +00:00
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:
parent
daa9ccae52
commit
9e779ca846
@ -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__)
|
||||
|
Loading…
Reference in New Issue
Block a user