Skip to main content

Type Alias: MessageContentBlock

MessageContentBlock = { text: string; type: "text"; } | { caption?: string; mimeType?: string; type: "image"; url: string; } | { caption?: string; mimeType?: string; type: "video"; url: string; } | { duration?: number; mimeType?: string; type: "audio"; url: string; } | { filename: string; mimeType?: string; type: "document"; url: string; } | { stickerId: string; type: "sticker"; url?: string; } | { latitude: number; longitude: number; name?: string; type: "location"; } | { buttons: MessageButton[]; type: "button_group"; } | { color?: string; description?: string; fields?: object[]; title: string; type: "embed"; url?: string; }

Defined in: packages/agentos/src/channels/types.ts:116

Content block within a message. A single message can contain multiple content blocks (e.g., text + image attachment).