AIChatControl.SendMessage(String, ChatRole, List<AIChatUploadFileInfo>) Method
OBSOLETE
This property is obsolete and will be removed in a future version. Use SendMessageAsync instead.
Sends a message to the chat.
Namespace: DevExpress.AIIntegration.Wpf.Chat
Assembly: DevExpress.AIIntegration.Wpf.Chat.v26.1.dll
NuGet Package: DevExpress.AIIntegration.Wpf.Chat
Declaration
[Obsolete("This property is obsolete and will be removed in a future version. Use SendMessageAsync instead.")]
public Task SendMessage(
string text,
ChatRole role,
List<AIChatUploadFileInfo> files = null
)
Parameters
| Name | Type | Description |
|---|---|---|
| text | String | The message text to be sent. |
| role | Microsoft.Extensions.AI.ChatRole | The role of the message owner. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| files | List<AIChatUploadFileInfo> | null | A collection of files to be uploaded. |
Returns
| Type | Description |
|---|---|
| Task | A task that is completed when the message is sent. |
See Also