ClassChatAIClientSettings
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public sealed class ChatAIClientSettings : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseChatAIClientSettings
Implements:
Constructors
ChatAIClientSettings()
Declaration
public ChatAIClientSettings()
Properties
AIImageAltText
Specifies the alternative text for the AI author's image to use when OnAIResponse is not provided.
Declaration
[Parameter]
public string AIImageAltText { get; set; }
Property Value
AIImageUrl
Specifies the URL of the AI author's image to use when OnAIResponse is not provided.
Declaration
[Parameter]
public string AIImageUrl { get; set; }
Property Value
AIName
Specifies the display name of the AI author to use when OnAIResponse is not provided.
ChatClientKey
The unique key that identifies the client service used by the component for AI operations.
Declaration
[Parameter]
public string? ChatClientKey { get; set; }
Property Value
EnableHistory
Enables or disables conversation history for the AI client.
When enabled, previous messages from the chat are sent as context to the AI service on each request.
The number of messages to include is controlled by HistoryMessageCount.
Default value is true.
Declaration
[Parameter]
public bool EnableHistory { get; set; }
Property Value
EnableStreaming
Indicates whether streaming response is enabled for the AI client.
Declaration
[Parameter]
public bool EnableStreaming { get; set; }
Property Value
HistoryMessageCount
Specifies the maximum number of messages to include in the conversation history sent to the AI client.
Older messages beyond this limit are excluded to manage context size and performance.
Only applies when EnableHistory is true.
Default value is int.MaxValue.
Declaration
[Parameter]
public int HistoryMessageCount { get; set; }
Property Value
OnAIResponse
Event callback that is invoked when the AI client produces a response.
Declaration
[Parameter]
public EventCallback<ChatAIResponseEventArgs> OnAIResponse { get; set; }
Property Value
SystemPrompt
Defines the system prompt that is passed to the AI request.
Declaration
[Parameter]
public string SystemPrompt { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose()
Declaration
public void Dispose()
Implements
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
OnParametersSet()
Declaration
protected override void OnParametersSet()
Overrides
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides