Documentation
Table of Contents

Property CodeSettings

Namespace
IntentSharp.Guardrails
Assembly
IntentSharp.Guardrails.dll

CodeSettings

The code layer of the settings, by setting name: what a setting takes when no file sets it, as CodeSettings is for a client. The source reads rules.ambiguousSet here when the settings document in its store does not set it, and WithGuardrailFiles(IntentClientBuilder, IDocumentStore, Action<GuardrailSourceOptions>, params string[]) and AddGuardrails(IServiceCollection, IDocumentStore, Action<GuardrailSourceOptions>, params string[]) pass every value to the client's code layer as well. Each name must be a declared setting and each value one the setting takes.

public IDictionary<string, JsonNode?> CodeSettings { get; }

Property Value

IDictionary<string, JsonNode>