New to Telerik UI for Blazor? Start a free 30-day trial

Describes a dataset: field metadata for the AI, plus (optionally) the actual data rows for rendering. Fields/Id/Description are sent to the AI so it can reason about which dataset best matches a user prompt; Data is JsonIgnoreAttribute and is never sent to the AI — it exists purely so the host app can carry the actual rows alongside their metadata as a single object, instead of passing data and field descriptors as separate parameters.

Definition

Namespace:Telerik.Blazor.Components.DatAInsightsComposer

Assembly:Telerik.Blazor.DatAInsightsComposer.dll

Syntax:

C#
public class DatasetDescriptor

Inheritance: objectDatasetDescriptor

Constructors

C#
public DatasetDescriptor()

Properties

The actual data rows for this dataset, used only for local rendering (e.g. by TelerikDatAInsightsComposer). Excluded from JSON serialization so it is never included in an AI request, even if a DatasetDescriptor carrying real rows is accidentally passed straight through to GenerateComponentsRequest/RefineComponentsRequest.

C#
[JsonIgnore]
public IEnumerable<object>? Data { get; set; }

Human-readable description of what the dataset contains.

C#
public string? Description { get; set; }

Field definitions that describe the shape of the dataset.

C#
public List<DatasetFieldDescriptor> Fields { get; set; }

Unique key that identifies the dataset.

C#
public string Id { get; set; }

Text displayed in the UI (dataset chips, fields popup). Never sent to the AI. Not used as a fallback for Id; when not set, no text is rendered.

C#
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Label { get; set; }