MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / createAIChatBuffer

Function createAIChatBuffer

src/stores/aiChat.ts:270–278  ·  view source on GitHub ↗
(assistantId: string | null = null)

Source from the content-addressed store, hash-verified

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

Callers 3

createSessionStateFunction · 0.85
getOrCreateBufferFunction · 0.85
startNewAIChatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected