Skip to main content
All docs
V25.2
  • AIChatResource(String, String, Func<AIChatResource, CancellationToken, Task<ReadOnlyMemory<Byte>>>, String, String) Constructor

    Initializes a new instance of the AIChatResource class with specified settings.

    Namespace: DevExpress.AIIntegration.Blazor.Chat

    Assembly: DevExpress.AIIntegration.Blazor.Chat.v25.2.dll

    NuGet Package: DevExpress.AIIntegration.Blazor.Chat

    Declaration

    public AIChatResource(
        string uri,
        string name,
        Func<AIChatResource, CancellationToken, Task<ReadOnlyMemory<byte>>> binaryDataProvider,
        string mimeType,
        string description = null
    )

    Parameters

    Name Type Description
    uri String

    The absolute or relative resource location.

    name String

    The resource name.

    binaryDataProvider Func<AIChatResource, CancellationToken, Task<ReadOnlyMemory<Byte>>>

    The method that returns binary resource content.

    mimeType String

    The resource media type.

    Optional Parameters

    Name Type Default Description
    description String null

    The resource description.

    See Also