(event: LoopEvent)
| 161 | } |
| 162 | |
| 163 | function isRecordedEvent(event: LoopEvent): event is LoopRecordedEvent { |
| 164 | return ( |
| 165 | event.type === 'step.begin' || |
| 166 | event.type === 'step.end' || |
| 167 | event.type === 'content.part' || |
| 168 | event.type === 'tool.call' || |
| 169 | event.type === 'tool.result' |
| 170 | ); |
| 171 | } |
| 172 | |
| 173 | async function recordEvent( |
| 174 | input: CreateLoopEventDispatcherInput, |