Condividi tramite


ProjectInsights.GenerateAsync Method

Definition

Overloads

Name Description
GenerateAsync(ProjectsInsight, Nullable<FoundryFeaturesOptInKeys>, CancellationToken)

Generate Insights.

GenerateAsync(BinaryContent, String, RequestOptions)

[Protocol Method] Generate Insights

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

GenerateAsync(ProjectsInsight, Nullable<FoundryFeaturesOptInKeys>, CancellationToken)

Source:
ProjectInsights.cs
Source:
ProjectInsights.cs

Generate Insights.

public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Evaluation.ProjectsInsight>> GenerateAsync(Azure.AI.Projects.Evaluation.ProjectsInsight insight, Azure.AI.Projects.FoundryFeaturesOptInKeys? foundryFeatures = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateAsync : Azure.AI.Projects.Evaluation.ProjectsInsight * Nullable<Azure.AI.Projects.FoundryFeaturesOptInKeys> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Evaluation.ProjectsInsight>>
override this.GenerateAsync : Azure.AI.Projects.Evaluation.ProjectsInsight * Nullable<Azure.AI.Projects.FoundryFeaturesOptInKeys> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Evaluation.ProjectsInsight>>
Public Overridable Function GenerateAsync (insight As ProjectsInsight, Optional foundryFeatures As Nullable(Of FoundryFeaturesOptInKeys) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of ProjectsInsight))

Parameters

insight
ProjectsInsight

Complete evaluation configuration including data source, evaluators, and result settings.

foundryFeatures
Nullable<FoundryFeaturesOptInKeys>

A feature flag opt-in required when using preview operations or modifying persisted preview resources.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

insight is null.

Service returned a non-success status code.

Applies to

GenerateAsync(BinaryContent, String, RequestOptions)

Source:
ProjectInsights.cs
Source:
ProjectInsights.cs

[Protocol Method] Generate Insights

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> GenerateAsync(System.ClientModel.BinaryContent content, string foundryFeatures = default, System.ClientModel.Primitives.RequestOptions options = default);
abstract member GenerateAsync : System.ClientModel.BinaryContent * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.GenerateAsync : System.ClientModel.BinaryContent * string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function GenerateAsync (content As BinaryContent, Optional foundryFeatures As String = Nothing, Optional options As RequestOptions = Nothing) As Task(Of ClientResult)

Parameters

content
BinaryContent

The content to send as the body of the request.

foundryFeatures
String

A feature flag opt-in required when using preview operations or modifying persisted preview resources.

options
RequestOptions

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

content is null.

Service returned a non-success status code.

Applies to