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
subjectstringThe subject's name, such as
"data.entities".valueJsonNodeThe value as JSON: text, a number, true/false, a list or an object.
Returns
- SubjectValues
This instance, so calls can be chained.
Exceptions
- ArgumentNullException
subjectis null.- ArgumentException
subjectis empty or white space.