* Run one invocation end-to-end and return a structured result. * * Event order is guaranteed: normal invocations collect the initial user * RuntimeEvent before any flow event; continuations collect only new events. * By default collection stops at the first * terminal RuntimeEvent; c
(request: InvocationRequest)
| 195 | * events can opt into full draining through RuntimeRunnerDeps. |
| 196 | */ |
| 197 | async run(request: InvocationRequest): Promise<InvocationResult> { |
| 198 | const continuation = request.continuation; |
| 199 | if (continuation !== undefined) { |
| 200 | throw continuationAdmissionRequired(); |
| 201 | } |
| 202 | return this.#runInvocation(snapshotInvocationRequest(request, { continuation }), 'normal'); |
| 203 | } |
| 204 | |
| 205 | async #runInvocation( |
| 206 | request: InvocationRequest, |
no test coverage detected