Build the synthetic RUN_ERROR chunk appended when the stream throws.
(message: string)
| 37 | |
| 38 | /** Build the synthetic RUN_ERROR chunk appended when the stream throws. */ |
| 39 | function syntheticRunError(message: string): StreamChunk { |
| 40 | const chunk: { type: EventType.RUN_ERROR; message: string } = { |
| 41 | type: EventType.RUN_ERROR, |
| 42 | message, |
| 43 | } |
| 44 | return chunk |
| 45 | } |
| 46 | |
| 47 | export interface PipeToRunLogOptions { |
| 48 | log: RunEventLog |