Skip to main content
All docs
V26.1
  • ChatExtensions.AsIChatResponseProvider(IChatClient, ChatOptions) Method

    Converts an IChatClient instance into an IChatResponseProvider.

    Namespace: DevExpress.AIIntegration.Chat

    Assembly: DevExpress.AIIntegration.v26.1.dll

    Declaration

    public static IChatResponseProvider AsIChatResponseProvider(
        this IChatClient chatClient,
        ChatOptions chatOptions = null
    )

    Parameters

    Name Type Description
    chatClient Microsoft.Extensions.AI.IChatClient

    The AI chat client instance that executes requests against the configured AI service.

    Optional Parameters

    Name Type Default Description
    chatOptions Microsoft.Extensions.AI.ChatOptions null

    Optional configuration settings for chat execution. If null, the provider uses default backend behavior.

    Returns

    Type Description
    IChatResponseProvider

    An IChatResponseProvider implementation that uses the specified IChatClient as its execution backend.

    See Also