AIReviewRunResult
The result of an AI review run.
Properties
affectedBlocks : Array<AIRunChangeData>module:ai/aireviewmode/model/aireviewrunresult~AIReviewRunResult#affectedBlockschannelId : string | undefinedreadonlyinheritedmodule:ai/aireviewmode/model/aireviewrunresult~AIReviewRunResult#channelIdCollaboration channel id captured at the start of the run.
contentNew : stringreadonlyinheritedmodule:ai/aireviewmode/model/aireviewrunresult~AIReviewRunResult#contentNewThe
contentRawNewwithdata-idattributes stripped. Suitable for surfacing to end-users.contentOld : stringreadonlyinheritedmodule:ai/aireviewmode/model/aireviewrunresult~AIReviewRunResult#contentOldThe
contentRawOldwithdata-idattributes stripped. Suitable for surfacing to end-users.contentRawNew : string | undefinedinheritedmodule:ai/aireviewmode/model/aireviewrunresult~AIReviewRunResult#contentRawNewThe post-run document snapshot with all returned suggestions merged in, with
data-idattributes preserved. EqualscontentRawOldwhen the run produced no suggestions.undefineduntil the run completes.Parameters
value : string
contentRawOld : string | undefinedinheritedmodule:ai/aireviewmode/model/aireviewrunresult~AIReviewRunResult#contentRawOldThe pre-run document snapshot as captured at the time the run started, with
data-idattributes preserved.undefineduntil the run starts.Parameters
value : string
documentVersion : number | undefinedinheritedmodule:ai/aireviewmode/model/aireviewrunresult~AIReviewRunResult#documentVersionDocument version captured when the run started.
undefineduntil the run starts.Parameters
value : number
module:ai/aireviewmode/model/aireviewrunresult~AIReviewRunResult#editorThe editor the AI run was performed against.
error : Error | undefinedinheritedmodule:ai/aireviewmode/model/aireviewrunresult~AIReviewRunResult#errorrootName : stringreadonlyinheritedmodule:ai/aireviewmode/model/aireviewrunresult~AIReviewRunResult#rootNameName of the editor root the AI run targeted.
sessionId : stringreadonlyinheritedmodule:ai/aireviewmode/model/aireviewrunresult~AIReviewRunResult#sessionIdAI editing session id captured at the start of the run.
status : AIRunStatusreadonlyinheritedmodule:ai/aireviewmode/model/aireviewrunresult~AIReviewRunResult#statusOutcome of the run. Anything other than
'completed'means the run did not finish successfully — seeerrorfor details.
Methods
constructor( data )inheritedmodule:ai/aireviewmode/model/aireviewrunresult~AIReviewRunResult#constructorParameters
data : AIRunResultInput
abort() → voidinheritedmodule:ai/aireviewmode/model/aireviewrunresult~AIReviewRunResult#abort