AgentOptimizationClient.ResolveOptionsAsync(String, CancellationToken) 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.
Resolves a CandidateDeployConfig using a priority waterfall:
- API — calls
GetCandidateConfigFlatusing the client's configured endpoint and credential pipeline. - Env var — reads
OPTIMIZATION_CONFIGas inline JSON and deserializes it.
null when no source matches.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.AgentServer.Optimization.CandidateDeployConfig>> ResolveOptionsAsync(string candidateId, System.Threading.CancellationToken cancellationToken = default);
abstract member ResolveOptionsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.AgentServer.Optimization.CandidateDeployConfig>>
override this.ResolveOptionsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.AgentServer.Optimization.CandidateDeployConfig>>
Public Overridable Function ResolveOptionsAsync (candidateId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CandidateDeployConfig))
Parameters
- candidateId
- String
The candidate identifier to resolve config for.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The resolved config wrapped in a Response<T>, or null when no source matched.