Insights.GenerateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GenerateAsync(Insight, CancellationToken) |
Generate Insights. |
| GenerateAsync(BinaryContent, RequestOptions) |
[Protocol Method] Generate Insights
|
GenerateAsync(Insight, CancellationToken)
- Source:
- Insights.cs
Generate Insights.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Insight>> GenerateAsync(Azure.AI.Projects.Insight insight, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateAsync : Azure.AI.Projects.Insight * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Insight>>
override this.GenerateAsync : Azure.AI.Projects.Insight * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Insight>>
Public Overridable Function GenerateAsync (insight As Insight, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of Insight))
Parameters
- insight
- Insight
Complete evaluation configuration including data source, evaluators, and result settings.
- 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, RequestOptions)
- Source:
- Insights.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, System.ClientModel.Primitives.RequestOptions options = default);
abstract member GenerateAsync : System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.GenerateAsync : System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function GenerateAsync (content As BinaryContent, Optional options As RequestOptions = Nothing) As Task(Of ClientResult)
Parameters
- content
- BinaryContent
The content to send as the body of the request.
- 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.