Skip to main content
All docs
V25.2
  • AIExtensionsContainerDesktop.RegisterChatClient(AIExtensionsContainer, Func<IServiceProvider, IChatClient>) Method

    Registers a chat client.

    Namespace: DevExpress.AIIntegration

    Assembly: DevExpress.AIIntegration.Desktop.v25.2.dll

    Declaration

    public static void RegisterChatClient(
        this AIExtensionsContainer container,
        Func<IServiceProvider, IChatClient> chatClientFactory
    )

    Parameters

    Name Type Description
    container AIExtensionsContainer

    The container that holds the registered AI client. Components use this container to obtain AI services.

    chatClientFactory Func<IServiceProvider, Microsoft.Extensions.AI.IChatClient>

    A delegate that creates and configures an IChatClient instance. The factory receives the application’s IServiceProvider and must return a fully initialized chat client.

    See Also