    

 ## On this page

  

 

 # saveToModel

 Last update: 18.06.2026 

abstract fun [saveToModel](save-to-model.md)(dataHistory: [DataHistory](./../-data-history/index.md), runIndex: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))

Notify that a user has requested to save the indicated run to the model.

#### Parameters

dataHistorythe data history to supply the datarunIndexthe index of the run to save