Documentation
Table of Contents

Method Add

Namespace
IntentSharp.Guardrails
Assembly
IntentSharp.dll

Add(string, JsonNode?)

Sets the value of subject, replacing any value or unknown marker it had. A JSON null on a required or security subject counts as no value.

public SubjectValues Add(string subject, JsonNode? value)

Parameters

subject string

The subject's name, such as "data.entities".

value JsonNode

The value as JSON: text, a number, true/false, a list or an object.

Returns

SubjectValues

This instance, so calls can be chained.

Exceptions

ArgumentNullException

subject is null.

ArgumentException

subject is empty or white space.