Skip to main content
All docs
V26.1
  • DxAIChat Members

    An AI-powered chat component.

    Constructors

    Name Description
    DxAIChat() Initializes a new instance of the DxAIChat class.

    Properties

    Name Description
    AIChatSettings Allows access to AI Chat settings.
    AllowResizeInput Specifies whether users can resize the AI chat input box.
    BindValueMode Specifies how the AI Chat component commits user input to the internal message text buffer that is sent to the chat.
    ChatClientServiceKey Obsolete. Associates the chat component with the specific chat client service.
    ChatResponseProviderServiceKey Associates the chat component with the specific AI service.
    CssClass Assigns a CSS class to the DxAIChat component.
    EmptyMessageAreaTemplate Specifies the template used to display the message area if there are no message bubbles.
    EmptyMessageAreaText Specifies the text displayed in the AI Chat message area when it contains no messages.
    FileUploadEnabled Specifies whether users can attach files to messages.
    FrequencyPenalty Obsolete. Specifies how the model penalizes new tokens based on their frequency in the text.
    FunctionCallInfoContentTemplate Specifies a template used to display function call details appended to a message when the IncludeFunctionCallInfo property is enabled.
    HeaderText Specifies the text displayed in the AI Chat header.
    IncludeFunctionCallInfo Specifies whether the AI Chat displays basic details about an invoked function.
    InputBoxNullText Specifies the prompt text displayed in the AI Chat input box when it is empty.
    InputDelay Specifies the time delay for the BindValueMode.OnDelayedInput mode.
    MaxTokens Obsolete. Limits the maximum number of tokens to generate in a single call to a GPT model.
    MessageContentTemplate Specifies a template used to display message bubble content.
    MessageTemplate Specifies the template used to display chat messages.
    PromptSuggestionContentTemplate Specifies a template for prompt suggestion content.
    PromptSuggestions Specifies the collection of prompt suggestions (hint bubbles).
    ResourceItemTemplate Specifies a template for an AI resource entry in the resource picker popup.
    Resources Specifies AI Chat resources that a user can reference during a chat session.
    ResponseContentFormat Specifies the format of response content.
    ShowHeader Specifies whether the AI Chat displays the header.
    SizeMode Specifies the size of the component and its content.
    Temperature Obsolete. Specifies the response text randomness.
    UseStreaming Specifies whether a response should be sent as a stream.

    Methods

    Name Description
    AppendMessageAsync(String, ChatRole, List<IAIChatMessageContextItem>) Adds a message to the chat history.
    Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
    Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
    GetHashCode() Serves as the default hash function. Inherited from Object.
    GetType() Gets the Type of the current instance. Inherited from Object.
    HideLoadingIndicatorAsync() Hides the loading indicator in the chat message area.
    LoadMessages(IEnumerable<BlazorChatMessage>) Loads messages to the chat history.
    MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
    ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
    SaveMessages() Saves messages from the chat history.
    SendMessage(String, ChatRole, List<AIChatUploadFileInfo>) Obsolete. Sends a message to the chat.
    SendMessageAsync(List<AIContent>, CancellationToken) Sends a multimodal message to the AI service.
    SendMessageAsync(String, List<IAIChatMessageContextItem>, CancellationToken) Sends a message to the AI service.
    ShowLoadingIndicatorAsync(String) Displays a loading indicator in the chat message area.
    ToString() Returns a string that represents the current object. Inherited from Object.

    Events

    Name Description
    Initialized Fires after the component is initialized.
    MessageSending Fires when a user submits a message to the chat.
    MessageSent Obsolete. Fires after a user sends a message to the chat and allows you to manually process the message.
    ResponseReceived Fires after the AI provider returns a response, before the message is displayed in the chat.
    See Also