ToolOption
type ToolOption = { icon: ChatKitIcon; id: string; label: string; pinned?: boolean; placeholderOverride?: string; shortLabel?: string;};
Describes a selectable tool shown in the composer.
Properties
Section titled “Properties”icon: ChatKitIcon;
Icon displayed next to the tool in the menu.
id: string;
label: string;
Label displayed in the tool menu
pinned?
Section titled “pinned?”optional pinned: boolean;
Whether the tool is pinned to the composer outside of the tool menu.
Default
Section titled “Default”false;
placeholderOverride?
Section titled “placeholderOverride?”optional placeholderOverride: string;
Optional placeholder text to show in the composer input when the tool is selected.
shortLabel?
Section titled “shortLabel?”optional shortLabel: string;
Optional label displayed in the button when the tool is selected.