ProjectsAgentsModelFactory.OptimizationTaskResult 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.
Per-task evaluation result for a single candidate.
public static Azure.AI.Projects.Agents.OptimizationTaskResult OptimizationTaskResult(string taskName = default, string query = default, System.Collections.Generic.IDictionary<string,double> scores = default, double compositeScore = 0, long tokens = 0, TimeSpan durationSeconds = default, bool passed = false, string errorMessage = default, System.Collections.Generic.IDictionary<string,string> rationales = default, string response = default, string runId = default);
static member OptimizationTaskResult : string * string * System.Collections.Generic.IDictionary<string, double> * double * int64 * TimeSpan * bool * string * System.Collections.Generic.IDictionary<string, string> * string * string -> Azure.AI.Projects.Agents.OptimizationTaskResult
Public Shared Function OptimizationTaskResult (Optional taskName As String = Nothing, Optional query As String = Nothing, Optional scores As IDictionary(Of String, Double) = Nothing, Optional compositeScore As Double = 0, Optional tokens As Long = 0, Optional durationSeconds As TimeSpan = Nothing, Optional passed As Boolean = false, Optional errorMessage As String = Nothing, Optional rationales As IDictionary(Of String, String) = Nothing, Optional response As String = Nothing, Optional runId As String = Nothing) As OptimizationTaskResult
Parameters
- taskName
- String
Task name (from the dataset).
- query
- String
The user query / input for the task.
- scores
- IDictionary<String,Double>
Per-evaluator scores keyed by evaluator name.
- compositeScore
- Double
Composite score combining all evaluator scores.
- tokens
- Int64
Total tokens consumed during the agent run for this task.
- durationSeconds
- TimeSpan
Wall-clock seconds for this task's agent execution.
- passed
- Boolean
Whether the task met the pass threshold.
- errorMessage
- String
Error message if the task failed during execution.
- rationales
- IDictionary<String,String>
Per-evaluator reasoning keyed by evaluator name.
- response
- String
Raw agent response text.
- runId
- String
Identifier of the agent run that produced this result.
Returns
A new OptimizationTaskResult instance for mocking.