ProjectsAgentsModelFactory.OptimizationJobResult 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.
Terminal-state result body. Populated when status is succeeded or failed.
public static Azure.AI.Projects.Agents.OptimizationJobResult OptimizationJobResult(Azure.AI.Projects.Agents.OptimizationCandidate baseline = default, Azure.AI.Projects.Agents.OptimizationCandidate best = default, System.Collections.Generic.IEnumerable<Azure.AI.Projects.Agents.OptimizationCandidate> candidates = default, Azure.AI.Projects.Agents.OptimizationOptions options = default, System.Collections.Generic.IEnumerable<string> warnings = default, bool? allTargetAttributesFailed = default);
static member OptimizationJobResult : Azure.AI.Projects.Agents.OptimizationCandidate * Azure.AI.Projects.Agents.OptimizationCandidate * seq<Azure.AI.Projects.Agents.OptimizationCandidate> * Azure.AI.Projects.Agents.OptimizationOptions * seq<string> * Nullable<bool> -> Azure.AI.Projects.Agents.OptimizationJobResult
Public Shared Function OptimizationJobResult (Optional baseline As OptimizationCandidate = Nothing, Optional best As OptimizationCandidate = Nothing, Optional candidates As IEnumerable(Of OptimizationCandidate) = Nothing, Optional options As OptimizationOptions = Nothing, Optional warnings As IEnumerable(Of String) = Nothing, Optional allTargetAttributesFailed As Nullable(Of Boolean) = Nothing) As OptimizationJobResult
Parameters
- baseline
- OptimizationCandidate
Evaluation scores for the original (un-optimized) agent configuration.
The highest-scoring candidate found during optimization.
- candidates
- IEnumerable<OptimizationCandidate>
All evaluated candidates including baseline.
- options
- OptimizationOptions
The options used for this optimization run.
- warnings
- IEnumerable<String>
Non-fatal warnings from the optimization run (e.g., target attribute failures that were skipped).
True when all target attributes failed — only the baseline was evaluated.
Returns
A new OptimizationJobResult instance for mocking.