mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-10 13:27:36 +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 json
|
||||||
import logging
|
import logging
|
||||||
from typing import Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
from langchain_core.callbacks import CallbackManagerForToolRun
|
from langchain_core.callbacks import CallbackManagerForToolRun
|
||||||
|
|
||||||
@ -11,11 +11,12 @@ class SlackGetChannel(SlackBaseTool):
|
|||||||
"""Tool that gets Slack channel information."""
|
"""Tool that gets Slack channel information."""
|
||||||
|
|
||||||
name: str = "get_channelid_name_dict"
|
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(
|
def _run(
|
||||||
self,
|
self, *args: Any, run_manager: Optional[CallbackManagerForToolRun] = None
|
||||||
run_manager: Optional[CallbackManagerForToolRun] = None,
|
|
||||||
) -> str:
|
) -> str:
|
||||||
try:
|
try:
|
||||||
logging.getLogger(__name__)
|
logging.getLogger(__name__)
|
||||||
|
Loading…
Reference in New Issue
Block a user