AIReportingIntegration.GeneratePromptToExpressionAsync(IAIExtensionsContainer, PromptToExpressionRequest, CancellationToken) Method
Generates an expression from the specified prompt.
Namespace: DevExpress.AIIntegration
Assembly: DevExpress.AIIntegration.Reporting.Common.v25.1.dll
NuGet Package: DevExpress.AIIntegration.Reporting.Common
Declaration
[DXBrowsable(true)]
public static Task<TextResponse> GeneratePromptToExpressionAsync(
this IAIExtensionsContainer container,
PromptToExpressionRequest request,
CancellationToken cancellationToken = default(CancellationToken)
)
Parameters
| Name | Type | Description |
|---|---|---|
| container | IAIExtensionsContainer | The AI extensions container. |
| request | PromptToExpressionRequest | The request to generate an expression from the specified prompt. |
Optional Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| cancellationToken | CancellationToken | null | The token that cancels the task. |
Returns
| Type | Description |
|---|---|
| Task<TextResponse> | The response that contains an AI-generated expression. |
See Also