Documentation
Table of Contents

Method ReadCandidateAsync

Namespace
IntentSharp.Guardrails
Assembly
IntentSharp.dll

ReadCandidateAsync(DocumentId, long, CancellationToken)

Reads the rule sets one version of a document defines, bound as the running version is, for a check to evaluate detect-only beside the running sets. The client caches the result until the source's snapshot revision changes.

ValueTask<IReadOnlyList<GuardrailSet>?> ReadCandidateAsync(DocumentId document, long sequence, CancellationToken ct)

Parameters

document DocumentId

The rule document.

sequence long

The version to read.

ct CancellationToken

Cancels the read.

Returns

ValueTask<IReadOnlyList<GuardrailSet>>

The version's sets, each with this document and sequence; null when the source does not list the document, the version does not exist or it does not load. The source reports why, once; the check then compares nothing for it.