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
-
objectRuleCompileOptions
- 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
maintenancerole and the default manifest.
Properties
- CompileIntent
The name of the default intent document that compiles a rule set's intent text:
intentsharp.guardrails.compileby default. The handler runs the running version ofdefaults/<name>.jsonin 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.jsonat the root of the store by default, with its.yamland.ymlspellings, as Manifest has it. Use the same manifest as the client's rule file source.
- Role
The provider role the compile calls use:
maintenanceby default, which the provider options map to the first provider ofanswerunless they name it. A role the provider options do not define fails the compile, and the version that ran before keeps running.