AIGatewayApplyOptions
Properties
aiSource : AIOperationSource | undefinedmodule:ai/aicore/aigateway~AIGatewayApplyOptions#aiSourceAI source identifier stamped on every operation produced for this run.
Defaults to
'api'.Note that when
applyMethodis'suggest', every created suggestion also receives the@aiattribute with the same identifier. The track changes plugin uses this attribute to display the suggestion as AI-generated.module:ai/aicore/aigateway~AIGatewayApplyOptions#applyMethodHow AI run changes are applied to the editor content.
With
'insert'the changes are written directly into the editor content. With'suggest'they are wrapped as track-changes suggestions — this requires theTrackChangesplugin to be loaded on the editor.roots : Array<AIEditorRoot> | undefinedmodule:ai/aicore/aigateway~AIGatewayApplyOptions#rootsRestrict the apply to a subset of the result's per-root entries. Each entry's
channelIdandrootNamemust match a per-root sub-result in the passedAIRunResult. When omitted, every entry inresult.resultsis applied.
Value
object