AIRunResult
Container returned by any per-root AI run. Wraps one AIRunSingleRootResult (or feature-specific subclass) per root when the run completes successfully; on whole-run failures (transport / parse errors or abort) the results array stays empty and the outcome is described by status and error.
Type parameters
SubResultType : extends AIRunSingleRootResult
Properties
error : Error | undefinedmodule:ai/aicore/model/airunresult~AIRunResult#errorThe error that caused the whole run to fail. Undefined when the run completed successfully or was aborted.
When the failure originated in the AI service backend, its structured response (for example, an
issueslist describing which fields failed validation) is available undererror.data.backendData.Parameters
value : CKEditorError
results : Array<SubResultType>readonlymodule:ai/aicore/model/airunresult~AIRunResult#resultsmodule:ai/aicore/model/airunresult~AIRunResult#statusOutcome of the whole run — driven explicitly by the runner. Per-root sub-results carry their own
status/error; consultresultsfor per-root outcomes.Parameters
value : AIRunStatus
Methods
constructor( results )module:ai/aicore/model/airunresult~AIRunResult#constructorType parameters
SubResultType : extends AIRunSingleRootResult
Parameters
results : Array<SubResultType>Defaults to
[]
abort() → voidmodule:ai/aicore/model/airunresult~AIRunResult#abortMarks the run as aborted. Reflected via
status. No-op when the run has already errored — a concrete error is more informative to the integrator than a subsequent abort.Returns
void
addResult( results ) → voidmodule:ai/aicore/model/airunresult~AIRunResult#addResultAppends one or more per-root sub-results to the multi.
Parameters
results : Array<SubResultType>
Returns
void