Documentation
Table of Contents

Class RuleCompileOptions

Namespace
IntentSharp.Guardrails
Assembly
IntentSharp.Guardrails.dll

Settings for compiling rules written as intent (RuleCompileHandler): which compile intent runs, through which provider role, and where the manifest that lists the rule files is. The handler copies the values when it is created, so a later change does not reach it.

[Experimental("INTENTSHARP001")]
public sealed class RuleCompileOptions
Inheritance
object
RuleCompileOptions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Extension Methods

Remarks

Experimental (INTENTSHARP001): the compile output and its companion format, rules-compiled/1, may change in a later version.

Constructors

RuleCompileOptions()

Creates the options with the library's compile intent, the maintenance role and the default manifest.

Properties

CompileIntent

The name of the default intent document that compiles a rule set's intent text: intentsharp.guardrails.compile by default. The handler runs the running version of defaults/<name>.json in the store when one loads, else the copy this package ships under that name; a name the package ships no copy of compiles nothing until a version is saved in the store.

Manifest

The manifest that lists the rule files to compile: intentsharp.guardrails.json at the root of the store by default, with its .yaml and .yml spellings, as Manifest has it. Use the same manifest as the client's rule file source.

Role

The provider role the compile calls use: maintenance by default, which the provider options map to the first provider of answer unless they name it. A role the provider options do not define fails the compile, and the version that ran before keeps running.