MCPcopy Create free account
hub / github.com/TanStack/ai / attachRunToConversation

Function attachRunToConversation

packages/ai-devtools/src/store/ai-context.tsx:446–456  ·  view source on GitHub ↗
(
    conversationId: string,
    runId: string | undefined,
  )

Source from the content-addressed store, hash-verified

444 }
445
446 function attachRunToConversation(
447 conversationId: string,
448 runId: string | undefined,
449 ): void {
450 if (!runId) return
451 const conv = state.conversations[conversationId]
452 if (!conv || conv.runIds?.includes(runId)) return
453 updateConversation(conversationId, {
454 runIds: [...(conv.runIds ?? []), runId],
455 })
456 }
457
458 function addMessage(conversationId: string, message: Message): void {
459 const conv = state.conversations[conversationId]

Callers 2

recordStructuredOutputFunction · 0.85
AIProviderFunction · 0.85

Calls 1

updateConversationFunction · 0.85

Tested by

no test coverage detected