/ src / utils / systemPromptType.ts
systemPromptType.ts
 1  /**
 2   * Branded type for system prompt arrays.
 3   *
 4   * This module is intentionally dependency-free so it can be imported
 5   * from anywhere without risking circular initialization issues.
 6   */
 7  
 8  export type SystemPrompt = readonly string[] & {
 9    readonly __brand: 'SystemPrompt'
10  }
11  
12  export function asSystemPrompt(value: readonly string[]): SystemPrompt {
13    return value as SystemPrompt
14  }