AIChatResource.MimeType Property
Specifies the AI Chat resource media type.
Namespace: DevExpress.AIIntegration.Blazor.Chat
Assembly: DevExpress.AIIntegration.Blazor.Chat.v25.2.dll
NuGet Package: DevExpress.AIIntegration.Blazor.Chat
Declaration
public string MimeType { get; }
Property Value
| Type | Description |
|---|---|
| String | A two-part identifier for the resource content format. |
Remarks
Use the MimeType property to specify a two-part identifier (MIME type) for the AIChatResource file/content format.
AIChatResource resource = new AIChatResource("instructions",
"Technical Support",
fileContent,
"text/plain",
"An assistant that helps troubleshoot technical issues and provides step-by-step solutions.");
Warning
If the resource URI uses Base64 format (data://<base64>), the component infers the media type from the URI. Otherwise, you must explicitly specify the media type. If the media type is omitted and cannot be detected from the URI, the AI resource is not added to the chat; no exception is thrown.
See Also