Interface ChatItemContent

interface ChatItemContent {
    body?: null | string;
    buttons?: null | ChatItemButton[];
    codeBlockActions?: null | CodeBlockActions;
    codeReference?: null | ReferenceTrackerInformation[];
    customRenderer?: null | string | ChatItemBodyRenderer | ChatItemBodyRenderer[];
    fileList?: null | {
        actions?: Record<string, FileNodeAction[]>;
        collapsed?: boolean;
        deletedFiles?: string[];
        details?: Record<string, TreeNodeDetails>;
        filePaths?: string[];
        fileTreeTitle?: string;
        flatList?: boolean;
        folderIcon?: null | "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history";
        hideFileCount?: boolean;
        rootFolderLabel?: string;
        rootFolderStatusIcon?: "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history";
        rootFolderStatusIconForegroundStatus?: Status;
        rootFolderTitle?: string;
    };
    followUp?: null | {
        options?: ChatItemAction[];
        text?: string;
    };
    footer?: null | ChatItemContent;
    formItems?: null | ChatItemFormItem[];
    fullWidth?: boolean;
    header?: null | ChatItemContent & {
        icon?: "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history" | CustomIcon;
        iconForegroundStatus?: Status;
        iconStatus?: Status | "main" | "primary" | "clear";
        status?: {
            description?: string;
            icon?: "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history";
            position?: "left" | "right";
            status?: Status;
            text?: string;
        };
    };
    informationCard?: null | {
        content: ChatItemContent;
        description?: string;
        icon?: "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history";
        status?: {
            body?: string;
            icon?: "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history";
            status?: Status;
        };
        title?: string;
    };
    muted?: boolean;
    padding?: boolean;
    relatedContent?: null | {
        content: SourceLink[];
        title?: string;
    };
    summary?: null | {
        collapsedContent?: ChatItemContent[];
        content?: ChatItemContent;
        isCollapsed?: boolean;
    };
    tabbedContent?: null | (ToggleOption & {
        content: ChatItemContent;
    })[];
    wrapCodes?: boolean;
}

Hierarchy (view full)

Properties

body?: null | string
buttons?: null | ChatItemButton[]
codeBlockActions?: null | CodeBlockActions
codeReference?: null | ReferenceTrackerInformation[]
customRenderer?: null | string | ChatItemBodyRenderer | ChatItemBodyRenderer[]
fileList?: null | {
    actions?: Record<string, FileNodeAction[]>;
    collapsed?: boolean;
    deletedFiles?: string[];
    details?: Record<string, TreeNodeDetails>;
    filePaths?: string[];
    fileTreeTitle?: string;
    flatList?: boolean;
    folderIcon?: null | "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history";
    hideFileCount?: boolean;
    rootFolderLabel?: string;
    rootFolderStatusIcon?: "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history";
    rootFolderStatusIconForegroundStatus?: Status;
    rootFolderTitle?: string;
}

Type declaration

  • Optional actions?: Record<string, FileNodeAction[]>
  • Optional collapsed?: boolean
  • Optional deletedFiles?: string[]
  • Optional details?: Record<string, TreeNodeDetails>
  • Optional filePaths?: string[]
  • Optional fileTreeTitle?: string
  • Optional flatList?: boolean
  • Optional folderIcon?: null | "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history"
  • Optional hideFileCount?: boolean
  • Optional rootFolderLabel?: string
  • Optional rootFolderStatusIcon?: "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history"
  • Optional rootFolderStatusIconForegroundStatus?: Status
  • Optional rootFolderTitle?: string
followUp?: null | {
    options?: ChatItemAction[];
    text?: string;
}

Type declaration

footer?: null | ChatItemContent
formItems?: null | ChatItemFormItem[]
fullWidth?: boolean
header?: null | ChatItemContent & {
    icon?: "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history" | CustomIcon;
    iconForegroundStatus?: Status;
    iconStatus?: Status | "main" | "primary" | "clear";
    status?: {
        description?: string;
        icon?: "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history";
        position?: "left" | "right";
        status?: Status;
        text?: string;
    };
}
informationCard?: null | {
    content: ChatItemContent;
    description?: string;
    icon?: "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history";
    status?: {
        body?: string;
        icon?: "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history";
        status?: Status;
    };
    title?: string;
}

Type declaration

  • content: ChatItemContent
  • Optional description?: string
  • Optional icon?: "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history"
  • Optional status?: {
        body?: string;
        icon?: "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history";
        status?: Status;
    }
    • Optional body?: string
    • Optional icon?: "copy" | "cancel" | MynahIcons | "q" | "at" | "menu" | "minus" | "minus-circled" | "search" | "plus" | "paper-clip" | "list-add" | "tabs" | "chat" | "link" | "folder" | "file" | "flash" | "doc" | "dot" | "external" | "cancel-circle" | "calendar" | "comment" | "megaphone" | "magic" | "notification" | "eye" | "ellipsis" | "ellipsis-h" | "ok" | "up-open" | "down-open" | "right-open" | "left-open" | "resize-full" | "resize-small" | "block" | "ok-circled" | "info" | "warning" | "error" | "thumbs-up" | "thumbs-down" | "star" | "stack" | "light-bulb" | "envelope-send" | "enter" | "refresh" | "progress" | "scroll-down" | "user" | "play" | "pause" | "stop" | "pencil" | "code-block" | "cursor-insert" | "text-select" | "tools" | "revert" | "undo" | "rocket" | "asterisk" | "bug" | "check-list" | "deploy" | "shell" | "help" | "message" | "mcp" | "trash" | "transform" | "history"
    • Optional status?: Status
  • Optional title?: string
muted?: boolean
padding?: boolean
relatedContent?: null | {
    content: SourceLink[];
    title?: string;
}

Type declaration

summary?: null | {
    collapsedContent?: ChatItemContent[];
    content?: ChatItemContent;
    isCollapsed?: boolean;
}

Type declaration

tabbedContent?: null | (ToggleOption & {
    content: ChatItemContent;
})[]
wrapCodes?: boolean