Insights.Generate 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 |
|---|---|
| Generate(Insight, CancellationToken) |
Generate Insights. |
| Generate(BinaryContent, RequestOptions) |
[Protocol Method] Generate Insights
|
Generate(Insight, CancellationToken)
- Source:
- Insights.cs
Generate Insights.
public virtual System.ClientModel.ClientResult<Azure.AI.Projects.Insight> Generate(Azure.AI.Projects.Insight insight, System.Threading.CancellationToken cancellationToken = default);
abstract member Generate : Azure.AI.Projects.Insight * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.Insight>
override this.Generate : Azure.AI.Projects.Insight * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.Insight>
Public Overridable Function Generate (insight As Insight, Optional cancellationToken As CancellationToken = Nothing) As 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
Generate(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.ClientModel.ClientResult Generate(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member Generate : System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
override this.Generate : System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
Public Overridable Function Generate (content As BinaryContent, Optional options As RequestOptions = Nothing) As 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.