Run Entities
These entities are used by the Run adapter and encapsulate data objects used by the Epicenter Run API.
Enums
MORPHOLOGY
Denotes the type of run.
Possible values:
MORPHOLOGY.MANY = 'MANY'- A regular model run with a randomly generated unique key.MORPHOLOGY.SINGULAR = 'SINGULAR'- Denotes a singular run.MORPHOLOGY.PROXY = 'PROXY'- Denotes a singular run with an open HTTP endpoint useful for fine grained permission elevation of client calls.
Interfaces
ModelContext
Contains overrides for model context values.
Properties
version(string): The model context version. Possible values:"V1""V2"
variables(Record<string, VariableOptions>, optional): The run state variables that need to be stored and their processing options.externalFunctions(Record<string, WireExternalFunction>, optional): A mapping of external function names toWireExternalFunctionobjects, allowing integration with external logic or systems.modelVersion(number, optional): The numerical version identifier of the model.mappedFiles(Record<string, string>, optional): A mapping of model context files for different simulation scenarios.control(ExcelModelControl|JavaModelControl|PowersimModelControl|VensimModelControl, optional): An object with settings specific to the model language.language(string, optional): The primary programming or modeling language used for this model context.protections(Protections, optional): Protection settings for state variables.restorations(Restorations, optional): Settings defining how a model run gets restored.workerImage(string, optional): The Docker worker image.dependencies(AptExternalDependency|CranExternalDependency|GitExternalDependency|JuliaExternalDependency|NpmExternalDependency|PypiExternalDependency|ShellExternalDependency, optional): A list of external dependencies for the model.operations(Record<string, OperationOptions>, optional): A mapping of operation names toOperationOptionsobjects that define how the operations are executed.defaults(ModelContextDefaults, optional): Specifies the default context settings for the model.enableStateCache(boolean, optional): Iftrue, cache the values of non-state-changing operations.redirectStandardOut(boolean, optional): Iftrue, redirects the standard output (stdout) stream to a log file.startDebugger(boolean, optional): Iftrue, starts the debugger (for languages that have a debugger).inceptionGracePeriodSeconds(number, optional): How long we should wait for the model to start. The default is 180 seconds (3 minutes).minimumLogLevel(string, optional): The minimum severity level of the log.events(Record<string, EventOptions>, optional): A mapping of event names toEventOptionsobjects that control event-handling.
ExecutionContext
Represents the execution context for a run.