(
conversationId: string,
runId: string | undefined,
)
| 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] |
no test coverage detected