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 |
Returns
| Type | Description |
|---|---|
| IChatResponseProvider | An |
See Also