Marks a property as required (or not required) for AI-assisted report authoring.
The presence of this attribute with IsRequired set to true
indicates that an AI agent must provide a value for this property when constructing
the containing object.
When generating a JSON Schema, a property is added to the
requiredarray only when decorated with this attribute and IsRequired istrue.Example — CoordinateSystems must have at least one entry for a Graph to render:
csharp[AIAssistantRequired] public GraphCoordinateSystemCollection CoordinateSystems { get; }Example — Override inherited requirement in a descendant class:
csharp[AIAssistantRequired(false)] public override SomeType SomeProperty { get; }
Definition
Namespace:Telerik.Reporting
Assembly:Telerik.Reporting.dll
Syntax:
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class AIAssistantRequiredAttribute : Attribute
Inheritance: objectAttributeAIAssistantRequiredAttribute
Constructors
Initializes a new instance of the AIAssistantRequiredAttribute class
with IsRequired set to true.
public AIAssistantRequiredAttribute()
Initializes a new instance of the AIAssistantRequiredAttribute class with the specified value indicating whether the property is required.
public AIAssistantRequiredAttribute(bool isRequired)
true if the property is required; false to explicitly mark it as not required,
which can be used to override an inherited requirement in a descendant class.
Properties
IsRequired
bool
Gets a value indicating whether the decorated property is required for AI-assisted authoring.
public bool IsRequired { get; }
true if the property is required; otherwise, false.
The default value is true.