Skip to main content
All docs
V26.1
  • AIChatControl.ChatResources Property

    Gets or sets a collection of resources that supply external or dynamically generated data to the AI model.

    Namespace: DevExpress.AIIntegration.Wpf.Chat

    Assembly: DevExpress.AIIntegration.Wpf.Chat.v26.1.dll

    NuGet Package: DevExpress.AIIntegration.Wpf.Chat

    Declaration

    public IEnumerable<AIChatResource> ChatResources { get; set; }

    Property Value

    Type Description
    IEnumerable<AIChatResource>

    A collection of AIChatResource objects.

    Remarks

    Refer to the following help topic for additional information: Chat Resources

    Example

    The following example assigns a collection of resources to the AI Chat Control:

    using System.Collections.Generic;
    using DevExpress.AIIntegration.Blazor.Chat;
    
    aiChatControl.ChatResources = new List<AIChatResource> {
        new AIChatResource(
            "access.txt",
            "Access Log",
            GetLogResourceAsync,
            "text/plain",
            "Contains web server access records collected over the last 24 hours.")
    };
    
    See Also