Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion libs/community/langchain_community/tools/slack/get_channel.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
import json
import logging
from typing import Any, Optional
from typing import Any, Optional, Type

from pydantic import BaseModel, Field

from langchain_core.callbacks import CallbackManagerForToolRun

from langchain_community.tools.slack.base import SlackBaseTool

class SlackGetChannelSchema(BaseModel):
"""Placeholder input schema for SlackGetChannel.

This is intentionally minimal. Add fields later if the tool needs
structured input (for example: pagination cursors or filters).
"""
pass


class SlackGetChannel(SlackBaseTool):
"""Tool that gets Slack channel information."""
Expand All @@ -14,6 +24,7 @@ class SlackGetChannel(SlackBaseTool):
description: str = (
"Use this tool to get channelid-name dict. There is no input to this tool"
)
args_schema: Type[SlackGetChannelSchema] = SlackGetChannelSchema

def _run(
self, *args: Any, run_manager: Optional[CallbackManagerForToolRun] = None
Expand Down