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

The wire contract an external backend (or an IChatClient call, internally) hands back to DatAInsightsComposerAIService.SendGenerateComponentsRequestAsync. Carries only what the pipeline needs to continue — the raw text answer and whether the model refused to answer — so a backend integration never needs to construct or know about Microsoft.Extensions.AI types like ChatResponse.

Definition

Namespace:Telerik.Blazor.Components.DatAInsightsComposer

Assembly:Telerik.Blazor.DatAInsightsComposer.dll

Syntax:

C#
public class GenerateComponentsAIResponse

Inheritance: objectGenerateComponentsAIResponse

Constructors

C#
public GenerateComponentsAIResponse()

Properties

The JSON returned by the LLM, matching the request's schema. A populated value means the request succeeded; leave this null/empty on failure (e.g. a content-filter refusal) and use Message instead.

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

Set when JsonResponse is null/empty to explain why (e.g. the model's refusal text). The pipeline surfaces this via AIRefusalException.

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