(threadState, runId)
| 152 | } |
| 153 | |
| 154 | const hasPendingInterruptForRun = (threadState, runId) => { |
| 155 | const pendingInterrupt = threadState?.pendingInterrupt |
| 156 | if (!pendingInterrupt?.questions?.length) return false |
| 157 | return !pendingInterrupt.parentRunId || pendingInterrupt.parentRunId === runId |
| 158 | } |
| 159 | |
| 160 | const hasPendingInterruptInThreads = (threadIds, runId) => { |
| 161 | return [...threadIds].some((id) => hasPendingInterruptForRun(getThreadState(id), runId)) |
no outgoing calls
no test coverage detected