char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Aleksander Grygierui: Replace per-conversation MCP overrides with per-conversation tool policy (#27745)fe235f434

char/aliceai-t5-moe
1.3 KiB54 linesraw
1/**
2 * Attachment type enum for database message extras
3 */
4export enum AttachmentType {
5	AUDIO = 'AUDIO',
6	IMAGE = 'IMAGE',
7	LEGACY_CONTEXT = 'context', // Legacy attachment type for backward compatibility
8	MCP_PROMPT = 'MCP_PROMPT',
9	MCP_RESOURCE = 'MCP_RESOURCE',
10	PDF = 'PDF',
11	TEXT = 'TEXT',
12	VIDEO = 'VIDEO'
13}
14
15/**
16 * Unique identifiers for attachment menu items in the chat form action dropdowns.
17 * Used to select which file upload or attachment action is triggered.
18 */
19export enum AttachmentMenuItemId {
20	AUDIO = 'audio',
21	IMAGES = 'images',
22	PDF = 'pdf',
23	SYSTEM_MESSAGE = 'system-message',
24	TEXT = 'text',
25	VIDEO = 'video'
26}
27
28/**
29 * Defines when an attachment menu item should be enabled.
30 */
31export enum AttachmentItemEnabledWhen {
32	ALWAYS = 'always',
33	HAS_AUDIO_MODALITY = 'hasAudioModality',
34	HAS_VIDEO_MODALITY = 'hasVideoModality',
35	HAS_VISION_MODALITY = 'hasVisionModality'
36}
37
38/**
39 * Defines the callback action triggered when an attachment menu item is clicked.
40 */
41export enum AttachmentAction {
42	FILE_UPLOAD = 'onFileUpload',
43	SYSTEM_PROMPT_CLICK = 'onSystemPromptClick'
44}
45
46/**
47 * Human-readable labels used when embedding attachments in outgoing messages.
48 */
49export enum AttachmentLabel {
50	FILE = 'File',
51	MCP_PROMPT = 'MCP Prompt',
52	MCP_RESOURCE = 'MCP Resource',
53	PDF_FILE = 'PDF File'
54}