AIChatResource(String, String, Func<AIChatResource, CancellationToken, Task<String>>, 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<string>> textContentProvider,
string mimeType = null,
string description = null
)
Parameters
| Name | Type | Description |
|---|---|---|
| uri | String | The absolute or relative resource location. |
| name | String | The resource name. |
| textContentProvider | Func<AIChatResource, CancellationToken, Task<String>> | The method that returns textual resource content. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| mimeType | String | null | The resource media type. |
| description | String | null | The resource description. |
See Also