Documentation
Table of Contents

Class ClientEdits

Namespace
IntentSharp.Edits
Assembly
IntentSharp.dll

A client's edit seam, Edits: submit an edit your own AI flow produced and it goes the way the library's own edits go, checked by the document's validators and then applied by the client's IEditWriter, wrapped or not.

public sealed class ClientEdits
Inheritance
object
ClientEdits
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Extension Methods

Methods

SubmitAsync(ProposedEdit, CancellationToken)

Checks edit with every validator that handles its document and, when it loads, passes it to the client's edit writer, which by default saves it and makes it run. An edit whose content is larger than MaxEditBytes allows is Refused before any validator reads it. An edit that does not load, or whose document no validator handles, is refused too, and so is one the store refuses to save when the default writer saves it, with the store's reason; in every case nothing is stored. The returned outcome always carries the validators' Impact, including whether the edit widens a security item, whatever the writer reported.