# EvalCaseResult

> Tracon documentation. Tracon is a .NET package family that adds a control
> plane on Microsoft Agent Framework, published as NuGet packages that run
> inside your own ASP.NET Core application.
>
> Page: https://tracon.dev/api/tracon.evalcaseresult/
> Summary: EvalCaseResult: The result of a single EvalCase within an EvalRun.

<div class="api-provenance">Namespace Tracon · Assembly <code>Tracon.Abstractions.dll</code></div>

The result of a single [EvalCase](/api/tracon.evalcase/) within an [EvalRun](/api/tracon.evalrun/).

```csharp
public sealed record EvalCaseResult : IEquatable<EvalCaseResult>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.evalcaseresult/">EvalCaseResult</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;EvalCaseResult&gt;</a></dd><dt>Inherited Members</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a></dd></dl>

## Remarks

[EvalCaseResult.CaseId](/api/tracon.evalcaseresult/#Tracon_EvalCaseResult_CaseId) deliberately carries no foreign key: even if a case is
later changed or deleted, the past result record stays intelligible
(append-only spirit, same reason).

## Constructors

### <a id="Tracon_EvalCaseResult__ctor"></a> EvalCaseResult\(\)

```csharp
public EvalCaseResult()
```

## Properties

### <a id="Tracon_EvalCaseResult_CaseId"></a> CaseId

The identifier of the case being measured.

```csharp
public required Guid CaseId { get; init; }
```

#### Property Value

 [Guid](https://learn.microsoft.com/dotnet/api/system.guid)

### <a id="Tracon_EvalCaseResult_EvalRunId"></a> EvalRunId

The identifier of the run this result belongs to.

```csharp
public required Guid EvalRunId { get; init; }
```

#### Property Value

 [Guid](https://learn.microsoft.com/dotnet/api/system.guid)

### <a id="Tracon_EvalCaseResult_FailureReason"></a> FailureReason

The failure reason. Populated only when `Passed` is [false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool).

```csharp
public string? FailureReason { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)?

### <a id="Tracon_EvalCaseResult_Id"></a> Id

The result record identifier.

```csharp
public Guid Id { get; init; }
```

#### Property Value

 [Guid](https://learn.microsoft.com/dotnet/api/system.guid)

### <a id="Tracon_EvalCaseResult_Output"></a> Output

The text output produced by the agent.

```csharp
public string? Output { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)?

### <a id="Tracon_EvalCaseResult_Passed"></a> Passed

Reports whether the case passed all of its checks.

```csharp
public required bool Passed { get; init; }
```

#### Property Value

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_EvalCaseResult_RunId"></a> RunId

The identifier of the run record created while processing this case.
This lets an eval failure jump straight to its transcript and span tree.

```csharp
public Guid? RunId { get; init; }
```

#### Property Value

 [Guid](https://learn.microsoft.com/dotnet/api/system.guid)?

### <a id="Tracon_EvalCaseResult_Scores"></a> Scores

Per-check score list (free-form JSON).

```csharp
public JsonElement Scores { get; init; }
```

#### Property Value

 [JsonElement](https://learn.microsoft.com/dotnet/api/system.text.json.jsonelement)

#### Remarks

An unset value is stored as the empty JSON array, never as
`JsonValueKind.Undefined` - see [Tracon.FreeFormJson](/api/tracon/).

## Methods

### <a id="Tracon_EvalCaseResult_Equals_System_Object_"></a> Equals\(object?\)

```csharp
public override bool Equals(object? obj)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_EvalCaseResult_Equals_Tracon_EvalCaseResult_"></a> Equals\(EvalCaseResult?\)

```csharp
public bool Equals(EvalCaseResult? other)
```

#### Parameters

`other` [EvalCaseResult](/api/tracon.evalcaseresult/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_EvalCaseResult_GetHashCode"></a> GetHashCode\(\)

```csharp
public override int GetHashCode()
```

#### Returns

 [int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="Tracon_EvalCaseResult_ToString"></a> ToString\(\)

```csharp
public override string ToString()
```

#### Returns

 [string](https://learn.microsoft.com/dotnet/api/system.string)

## Operators

### <a id="Tracon_EvalCaseResult_op_Equality_Tracon_EvalCaseResult_Tracon_EvalCaseResult_"></a> operator ==\(EvalCaseResult?, EvalCaseResult?\)

```csharp
public static bool operator ==(EvalCaseResult? left, EvalCaseResult? right)
```

#### Parameters

`left` [EvalCaseResult](/api/tracon.evalcaseresult/)?

`right` [EvalCaseResult](/api/tracon.evalcaseresult/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_EvalCaseResult_op_Inequality_Tracon_EvalCaseResult_Tracon_EvalCaseResult_"></a> operator \!=\(EvalCaseResult?, EvalCaseResult?\)

```csharp
public static bool operator !=(EvalCaseResult? left, EvalCaseResult? right)
```

#### Parameters

`left` [EvalCaseResult](/api/tracon.evalcaseresult/)?

`right` [EvalCaseResult](/api/tracon.evalcaseresult/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)
