| 26 | }; |
| 27 | |
| 28 | interface ChatMessage { |
| 29 | id: string |
| 30 | content: string |
| 31 | role: "user" | "assistant" | "system" |
| 32 | timestamp: Date, |
| 33 | isNotVisible?: boolean, |
| 34 | completionTokens?: number; |
| 35 | promptTokens?: number; |
| 36 | totalTokens?: number; |
| 37 | error?: boolean; |
| 38 | reasoning?: string; |
| 39 | isReasoning?: boolean; |
| 40 | } |
| 41 | |
| 42 | type kwAIStoredChatHistory = { |
| 43 | [clusterConfig: string]: { |
nothing calls this directly
no outgoing calls
no test coverage detected