# EvalCaseDiff

> 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.evalcasediff/
> Summary: EvalCaseDiff: One case's outcome on both sides of an EvalRunDiff.

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

One case's outcome on both sides of an [EvalRunDiff](/api/tracon.evalrundiff/).

```csharp
public sealed record EvalCaseDiff : IEquatable<EvalCaseDiff>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.evalcasediff/">EvalCaseDiff</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;EvalCaseDiff&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>

## Constructors

### <a id="Tracon_EvalCaseDiff__ctor"></a> EvalCaseDiff\(\)

```csharp
public EvalCaseDiff()
```

## Properties

### <a id="Tracon_EvalCaseDiff_BaselineFailureReason"></a> BaselineFailureReason

The baseline side's failure reason, when it failed.

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

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

Whether the case passed on the baseline side.
[null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when the case is [EvalCaseDiffKind.Added](/api/tracon.evalcasediffkind/).

```csharp
public bool? BaselinePassed { get; init; }
```

#### Property Value

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

The identifier of the agent run the baseline result came from, so a
regression can be traced to the exact conversation.

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

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

The candidate side's failure reason, when it failed.

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

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

Whether the case passed on the candidate side.
[null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when the case is [EvalCaseDiffKind.Removed](/api/tracon.evalcasediffkind/).

```csharp
public bool? CandidatePassed { get; init; }
```

#### Property Value

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

The identifier of the agent run the candidate result came from.

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

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

The identifier of the case being compared.

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

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

Which bucket this case falls into.

```csharp
public required EvalCaseDiffKind Kind { get; init; }
```

#### Property Value

 [EvalCaseDiffKind](/api/tracon.evalcasediffkind/)

## Methods

### <a id="Tracon_EvalCaseDiff_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_EvalCaseDiff_Equals_Tracon_EvalCaseDiff_"></a> Equals\(EvalCaseDiff?\)

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

`other` [EvalCaseDiff](/api/tracon.evalcasediff/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_EvalCaseDiff_op_Equality_Tracon_EvalCaseDiff_Tracon_EvalCaseDiff_"></a> operator ==\(EvalCaseDiff?, EvalCaseDiff?\)

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

`left` [EvalCaseDiff](/api/tracon.evalcasediff/)?

`right` [EvalCaseDiff](/api/tracon.evalcasediff/)?

#### Returns

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

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

`left` [EvalCaseDiff](/api/tracon.evalcasediff/)?

`right` [EvalCaseDiff](/api/tracon.evalcasediff/)?

#### Returns

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