arcade-mcp/toolkits/slack/arcade_slack/constants.py
Eric Gustin 66e54d7cde
Slack Tools (#162)
implements additional tools for Slack related to retrieving
conversations metadata, list of members, history of messages, as well as
sending messages to private/public channels and DMs / multi-person DMs.

---------

Co-authored-by: Eric Gustin <eric@arcade-ai.com>
Co-authored-by: Renato Byrro <rmbyrro@gmail.com>
2025-01-23 18:15:52 -08:00

13 lines
363 B
Python

import os
from arcade_slack.custom_types import PositiveInt
MAX_PAGINATION_SIZE_LIMIT = 200
MAX_PAGINATION_TIMEOUT_SECONDS = PositiveInt(
os.environ.get(
"MAX_PAGINATION_TIMEOUT_SECONDS",
os.environ.get("MAX_SLACK_PAGINATION_TIMEOUT_SECONDS", 30),
),
name="MAX_PAGINATION_TIMEOUT_SECONDS or MAX_SLACK_PAGINATION_TIMEOUT_SECONDS",
)