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. |
| ChatClientServiceKey | Associates the chat component with the specific chat client 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. |
| FileUploadEnabled | Specifies whether users can attach files to messages. |
| FrequencyPenalty | Specifies how the model penalizes new tokens based on their frequency in the text. |
| MaxTokens | 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). |
| ResponseContentFormat | Specifies the format of response content. |
| SizeMode | Specifies the size of the component and its content. |
| Temperature | Specifies the response text randomness. |
| UseStreaming | Specifies whether a response should be sent as a stream. |
Methods
| Name | Description |
|---|---|
| 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. |
| 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>) | Sends a message to the chat. |
| ToString() | Returns a string that represents the current object. Inherited from Object. |
Events
| Name | Description |
|---|---|
| Initialized | Fires after the component is initialized. |
| MessageSent | Fires after a user sends a message to the chat and allows you to manually process the message. |
See Also