module

Ark::Slack

Constants

BUSY_REPLY_TEXT = "I'm currently handling too many requests. Please try again in a moment."
CHANNEL_TYPE_DM = "im"
ERROR_REPLY_TEXT = "Sorry, I encountered an error processing your request."
EXT_MEDIA_TYPES = {".csv" => "text/csv", ".xls" => "application/vnd.ms-excel", ".xlsx" => "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", ".json" => "application/json", ".yaml" => "text/yaml", ".yml" => "text/yaml", ".doc" => "application/msword", ".docx" => "application/vnd.openxmlformats-officedocument.wordprocessingml.document", ".html" => "text/html", ".md" => "text/markdown", ".txt" => "text/plain", ".pdf" => "application/pdf"}

Extension -> MIME type mapping for Bedrock Code Interpreter supported input types. https://docs.aws.amazon.com/bedrock/latest/userguide/agents-code-interpretation.html

MAX_INPUT_FILE_SIZE = (10 * 1024) * 1024
MAX_INPUT_FILES = 5
MAX_MESSAGE_LEN = 40000
MAX_OUTPUT_FILE_SIZE = (50 * 1024) * 1024
MIME_BINARY = "binary"
MIME_OCTET_STREAM = "application/octet-stream"
REACTION_PROCESSING = "eyes"
SUPPORTED_MEDIA_TYPES = EXT_MEDIA_TYPES.values.to_set
UNSUPPORTED_FILE_REPLY_TEXT = "I can't process this file type. Supported formats: CSV, PDF, Excel, Word, JSON, YAML, HTML, Markdown, and plain text."

Class methods

resolve_media_type(slack_mime : String | Nil, filename : String) : String | Nil
Source

Nested types