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

The wire contract DatAInsightsComposerAIService hands to DatAInsightsComposerAIService.SendGenerateComponentsRequestAsync when no IChatClient is used in-process. Carries everything a standalone backend needs to build its own chat messages, call an LLM, and return a JSON answer: the operation being performed, the prompts, and the response JSON schema (already extracted from ChatOptions so a customer's backend never needs to know about Microsoft.Extensions.AI types). The output token budget is intentionally not part of this contract — that's for the consuming application to decide, not the library.

Definition

Namespace:Telerik.Blazor.Components.DatAInsightsComposer

Assembly:Telerik.Blazor.DatAInsightsComposer.dll

Syntax:

C#
public class GenerateComponentsAIRequest

Inheritance: objectGenerateComponentsAIRequest

Constructors

C#
public GenerateComponentsAIRequest()

Properties

The (sanitized) end-user prompt driving this call.

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

The JSON schema itself, if one is set for this call.

C#
public JsonElement? Schema { get; set; }

The system prompt built by the pipeline for this step, if any.

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