AIIntegration.CreateExtractiveSummaryExtension(IAIExtensionsContainer, String) Method
Creates a new instance of the ExtractiveSummaryExtension
class.
Namespace: DevExpress.AIIntegration
Assembly: DevExpress.AIIntegration.v24.2.dll
Declaration
public static IAIExtension<ExtractiveSummaryRequest, TextResponse> CreateExtractiveSummaryExtension(
this IAIExtensionsContainer container,
string name = null
)
Parameters
Name | Type | Description |
---|---|---|
container | IAIExtensionsContainer | A container that manages registered AI clients. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
name | String | null | The name of the extension. |
Returns
Type | Description |
---|---|
DevExpress.AIIntegration.IAIExtension<ExtractiveSummaryRequest, TextResponse> | A new instance of the |
Remarks
IAIExtension<ExtractiveSummaryRequest, TextResponse> extension = AIIntegration.CreateExtractiveSummaryExtension(defaultAIExtensionsContainer);
await ExecuteAIExtension(extension, new ExtractiveSummaryRequest("Specify your request..."));
async Task ExecuteAIExtension<TRequest>(IAIExtension<TRequest, TextResponse> extension, TRequest request) {
var result = await extension.ExecuteAsync(request, CancellationToken.None);
Console.WriteLine(result);
}
See Also