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

Function updateConversation

packages/ai-devtools/src/store/ai-context.tsx:811–824  ·  view source on GitHub ↗
(
    conversationId: string,
    updates: Partial<Conversation>,
  )

Source from the content-addressed store, hash-verified

809
810 // Additional optimized helper functions
811 function updateConversation(
812 conversationId: string,
813 updates: Partial<Conversation>,
814 ): void {
815 if (!state.conversations[conversationId]) return
816 for (const [key, value] of Object.entries(updates)) {
817 setState(
818 'conversations',
819 conversationId,
820 key as keyof Conversation,
821 value,
822 )
823 }
824 }
825
826 function updateMessage(
827 conversationId: string,

Callers 4

attachRunToConversationFunction · 0.85
updateConversationUsageFunction · 0.85
AIProviderFunction · 0.85
recordStructuredOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected