Language

AgentOptimizationJobs.EstimateAsync Method

Definition

Overloads

Name Description
EstimateAsync(AgentOptimizationEstimateInputs, CancellationToken)

Estimates validation-set rows, per-stage model call volumes, and cost bands without submitting the job.

EstimateAsync(BinaryContent, RequestOptions)

[Protocol Method] Estimates validation-set rows, per-stage model call volumes, and cost bands without submitting the job.

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

EstimateAsync(AgentOptimizationEstimateInputs, CancellationToken)

Source:
AgentOptimizationJobs.cs
Source:
AgentOptimizationJobs.cs

Estimates validation-set rows, per-stage model call volumes, and cost bands without submitting the job.

public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.AgentOptimizationEstimateResult>> EstimateAsync(Azure.AI.Projects.Agents.AgentOptimizationEstimateInputs inputs, System.Threading.CancellationToken cancellationToken = default);
abstract member EstimateAsync : Azure.AI.Projects.Agents.AgentOptimizationEstimateInputs * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.AgentOptimizationEstimateResult>>
override this.EstimateAsync : Azure.AI.Projects.Agents.AgentOptimizationEstimateInputs * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Agents.AgentOptimizationEstimateResult>>
Public Overridable Function EstimateAsync (inputs As AgentOptimizationEstimateInputs, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of AgentOptimizationEstimateResult))

Parameters

inputs
AgentOptimizationEstimateInputs

The inputs to estimate against.

cancellationToken
CancellationToken

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

Returns

Exceptions

inputs is null.

Service returned a non-success status code.

Applies to

EstimateAsync(BinaryContent, RequestOptions)

Source:
AgentOptimizationJobs.cs
Source:
AgentOptimizationJobs.cs

[Protocol Method] Estimates validation-set rows, per-stage model call volumes, and cost bands without submitting the job.

  • 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> EstimateAsync(System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member EstimateAsync : System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.EstimateAsync : System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function EstimateAsync (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.

Applies to