(value: unknown)
| 383 | } |
| 384 | |
| 385 | function threadIdFromValue(value: unknown): string | undefined { |
| 386 | const record = asRecord(value) |
| 387 | if (typeof record.threadId === "string" && record.threadId.length > 0) return record.threadId |
| 388 | const thread = asRecord(record.thread) |
| 389 | if (typeof thread.id === "string" && thread.id.length > 0) return thread.id |
| 390 | return undefined |
| 391 | } |
| 392 | |
| 393 | function createOrUpdateServerProtocolTurnRuntime( |
| 394 | server: RuntimeServer, |
no test coverage detected