Documentation
Table of Contents

Method AssessAsync

Namespace
IntentSharp.Guardrails
Assembly
IntentSharp.Guardrails.dll

AssessAsync(DocumentId, string?, string, CancellationToken)

Assesses a proposed version of a guardrail document against the running one; see the class remarks.

public ValueTask<EditImpact> AssessAsync(DocumentId id, string? current, string proposed, CancellationToken ct = default)

Parameters

id DocumentId

The document being edited.

current string

The running text, or null when the document is new.

proposed string

The proposed text.

ct CancellationToken

Cancels the assessment.

Returns

ValueTask<EditImpact>

Whether the proposed version loads, its problems, its changes and whether it widens access.

Exceptions

ArgumentNullException

proposed is null.

ArgumentException

A default DocumentId, which names no document.