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
idDocumentIdThe document being edited.
currentstringThe running text, or null when the document is new.
proposedstringThe proposed text.
ctCancellationTokenCancels the assessment.
Returns
- ValueTask<EditImpact>
Whether the proposed version loads, its problems, its changes and whether it widens access.
Exceptions
- ArgumentNullException
proposedis null.- ArgumentException
A default DocumentId, which names no document.