Portal/rsconcept/frontend/src/features/ai/labels.ts

14 lines
711 B
TypeScript
Raw Normal View History

2025-07-13 17:58:32 +03:00
import { PromptVariableType } from './models/prompting';
const describePromptVariableRecord: Record<PromptVariableType, string> = {
[PromptVariableType.BLOCK]: 'Текущий блок операционной схемы',
[PromptVariableType.OSS]: 'Текущая операционная схема',
[PromptVariableType.SCHEMA]: 'Текущая концептуальный схема',
[PromptVariableType.CONSTITUENTA]: 'Текущая конституента'
};
/** Retrieves description for {@link PromptVariableType}. */
export function describePromptVariable(itemType: PromptVariableType): string {
return describePromptVariableRecord[itemType] ?? `UNKNOWN VARIABLE TYPE: ${itemType}`;
}