(assistantId: string | null = null)
| 268 | } |
| 269 | |
| 270 | function createAIChatBuffer(assistantId: string | null = null): AIChatBuffer { |
| 271 | return { |
| 272 | messages: [], |
| 273 | sourceMessages: [], |
| 274 | currentKeywords: [], |
| 275 | assistantId, |
| 276 | loaded: false, |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | function createSessionState(params: EnsureAIChatSessionParams): AIChatSessionState { |
| 281 | const draftBuffer = createAIChatBuffer(null) |
no outgoing calls
no test coverage detected