Optional ReadonlyAuthorizedOptional allow-list of entity names (or ['*']) that this Remote Operation is authorized
to mutate when GrantsServerWriteAuthority is true. Forwarded into the active
ServerOperationScopeFrame.allowedEntities by DispatchRemoteOperationInProcess.
ReadonlyContractOptional structural contract fingerprint emitted by CodeGen (or set by a hand-authored
operation). Automatically forwarded on Execute when the caller didn't override
options.contractFingerprint, allowing the server resolver to detect stale client bundles.
ReadonlyExecutionWhether this operation is a plain Sync request/response or a LongRunning run.
Optional ReadonlyExposeWhen true, exposes this operation for automatic discovery by MJ AI Agent tool adapters.
Optional ReadonlyExposeWhen true, exposes this operation for automatic discovery by MJ MCP server tool adapters.
ReadonlyOperationStable registry key and wire token for this operation (e.g. RecordProcess.RunNow).
ReadonlyRequiredOptional API-key scope string (e.g. recordprocess:execute) enforced for API-key / MCP
callers by the server resolver. undefined means no scope gate; interactive users remain
bounded by their entity permissions. Informational here — the server applies it.
ReadonlyRequiresWhen true, the server only permits the system user to invoke this operation.
Optional ReadonlyToolHuman/LLM-readable description when exposed as an Agent or MCP tool.
Optional ReadonlyToolOptional JSON-Schema object describing TInput when exposed as an Agent or MCP tool.
Whether executing this Remote Operation on the server establishes an authorized
ServerOperationScope for entities configured with WriteAuthority = 'ServerOperationOnly'.
Domain operations default to true. Generic client CRUD transports (such as
SaveEntityGraphOperation) override this to false so clients cannot bypass
ServerOperationOnly gates by wrapping entity writes in a generic graph mutation.
ProtectedAuthorizePer-operation authorization hook, composed with (and applied after) the framework gates that
the server resolver runs. Returns true by default. Override to enforce operation-specific
rules against the input, acting user, and server transport context (e.g. context.requestOrigin).
The typed input payload.
The acting user.
Optional_context: RemoteOpServerContextOptional server execution context (always supplied by ExecuteServer).
True if the operation may proceed.
ProtectedengineThe TrainingEngine instance to delegate to. Overridable so unit tests inject a mock engine with no live DB / sidecar (mirrors the Action's seam).
The universal entry point — identical on client and server. Routes the operation through the active (or explicitly supplied) provider's IRemoteOperationProvider.RouteOperation.
The typed input payload.
Optionaloptions: RemoteOpInvokeOptionsOptional invocation options (mode, progress callback, explicit provider/user).
The result; never throws for logical failures — inspect Success / ErrorMessage.
Returns refusals as typed ResultCodes (see PredictiveStudioRefusals).
ProtectedInternalRefuses a retired input by name, trains, then returns the run's stored decision. A retired input is refused before any progress is reported, so a refused call never starts a training run.
ProtectedprotocolWhere the run's protocol version is read, through the request's provider and user. Overridable for tests.
ProtectedtoMap the operation's typed input onto the engine's TrainModelInput. The retired inputs are refused before this runs (the type no longer carries them), so only the pipeline, the session iteration and the sidecar version map.
StaticGetDiscovers all ClassFactory-registered BaseRemotableOperation subclasses that opt into
AI Agent (ExposeAsAgentTool) and/or MCP (ExposeAsMCPTool) tool exposure.
Optionalfilter: { agentOnly?: boolean; mcpOnly?: boolean }
Server implementation of
PredictiveStudio.TrainModel. Extends the CodeGen-emitted PredictiveStudioTrainModelOperation base (which carries theOperationKey,ExecutionMode='LongRunning', andRequiredScope='predictive:execute') and supplies only the body; registered last so it wins server-side dispatch.