PostableMessage is the input type for posting messages to threads. It supports multiple formats: plain text, markdown, mdast AST, cards, and streaming.
Type Definition
Message Formats
Plain String
The simplest format - raw text passed through as-is to the platform.PostableRaw
Explicit raw text with optional attachments and files.PostableMarkdown
Markdown text that’s automatically converted to platform-specific format.PostableAst
mdast AST (Abstract Syntax Tree) for precise formatting control.PostableCard
Rich card with interactive components.Streaming
Stream text incrementally from AI models using AsyncIterable.Attachment Types
Attachment
File/image attachments linked to messages.FileUpload
File to upload with a message.Related Types
- Card Components - Rich card elements for PostableCard
- Markdown Utilities - Functions for working with markdown and AST