Back to Devexpress

AIChatResource.MimeType Property

blazor-devexpress-dot-aiintegration-dot-blazor-dot-chat-dot-aichatresource-c8a272c3.md

latest1.8 KB
Original Source

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

csharp
public string MimeType { get; }

Property Value

TypeDescription
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.

razor
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

AIChatResource Class

AIChatResource Members

DevExpress.AIIntegration.Blazor.Chat Namespace