fn end_event(run_id: String, ended: Result<Value, RunEnd>) -> RunEvent
The event that closes a run’s stream, from how it ended.