IAIChat.SendMessageAsync(List<AIContent>, CancellationToken) Method
Sends a multimodal message to the AI service.
Namespace: DevExpress.AIIntegration.Blazor.Chat
Assembly: DevExpress.AIIntegration.Blazor.Chat.v26.1.dll
Declaration
Task SendMessageAsync(
List<AIContent> contents,
CancellationToken cancellationToken = default(CancellationToken)
)
Parameters
| Name | Type | Description |
|---|---|---|
| contents | List<Microsoft.Extensions.AI.AIContent> | A list of content items that make up the message. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| cancellationToken | CancellationToken | null | A cancellation token that cancels the message sending operation. |
Returns
| Type | Description |
|---|---|
| Task | A task that completes when the message is sent. |
Remarks
Refer to the SendMessageAsync method description for additional information and an example.
See Also