Skip to main content

//clika-runtime/io.clika.modelverse/Modelverse/load

load

[common]
fun load(license: String? = null)

Load the runtime, the model library and the bridge, in that order, then read the library's version. license is the runtime's license credential (the CLIKA1-... text, or the path of a file holding it), placed for this process before the first model runs; null leaves the process environment as it is (the runtime then reads its own variable, or the per-user license file). The credential is handed to the runtime and never logged. A second call is a no-op.

Throws​

ModelverseExceptionwhen a library does not load or the bridge's handshake with the model library fails; the message says which step.