# EvalRun

> 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.evalrun/
> Summary: EvalRun: A single execution record and summary of an EvalSuite.

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

A single execution record and summary of an [EvalSuite](/api/tracon.evalsuite/).

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

[EvalRun.AgentVersion](/api/tracon.evalrun/#Tracon_EvalRun_AgentVersion) and [EvalRun.ModelId](/api/tracon.evalrun/#Tracon_EvalRun_ModelId) are critical: regression
tracking compares the same suite's result across different versions. Both
are filled in when the run actually starts (on the transition to
[EvalRunStatus.Running](/api/tracon.evalrunstatus/)) — not at trigger time, because the
agent definition can change while the job waits in the queue.

## Constructors

### <a id="Tracon_EvalRun__ctor"></a> EvalRun\(\)

```csharp
public EvalRun()
```

## Properties

### <a id="Tracon_EvalRun_AgentVersion"></a> AgentVersion

The agent definition version being measured. [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) before the run starts.

```csharp
public int? AgentVersion { get; init; }
```

#### Property Value

 [int](https://learn.microsoft.com/dotnet/api/system.int32)?

### <a id="Tracon_EvalRun_CompletedAt"></a> CompletedAt

The completion time (UTC). [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) while the run is in progress.

```csharp
public DateTimeOffset? CompletedAt { get; init; }
```

#### Property Value

 [DateTimeOffset](https://learn.microsoft.com/dotnet/api/system.datetimeoffset)?

### <a id="Tracon_EvalRun_Failed"></a> Failed

The number of remaining (failed) cases.

```csharp
public int Failed { get; init; }
```

#### Property Value

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

The run identifier.

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

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

The total input token count.

```csharp
public long? InputTokens { get; init; }
```

#### Property Value

 [long](https://learn.microsoft.com/dotnet/api/system.int64)?

### <a id="Tracon_EvalRun_JobId"></a> JobId

The identifier of the job record responsible for executing this run. The
run is executed through the job queue ([IJobStore](/api/tracon.ijobstore/)).

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

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

The model identifier being measured. [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) before the run starts.

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

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

The total output token count.

```csharp
public long? OutputTokens { get; init; }
```

#### Property Value

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

The number of cases that passed.

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

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

The start time (UTC).

```csharp
public required DateTimeOffset StartedAt { get; init; }
```

#### Property Value

 [DateTimeOffset](https://learn.microsoft.com/dotnet/api/system.datetimeoffset)

### <a id="Tracon_EvalRun_Status"></a> Status

The current status of the run.

```csharp
public required EvalRunStatus Status { get; init; }
```

#### Property Value

 [EvalRunStatus](/api/tracon.evalrunstatus/)

### <a id="Tracon_EvalRun_SuiteId"></a> SuiteId

The identifier of the suite being measured.

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

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

The tenant the run belongs to.

```csharp
public required string TenantId { get; init; }
```

#### Property Value

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

The total number of cases.

```csharp
public int Total { get; init; }
```

#### Property Value

 [int](https://learn.microsoft.com/dotnet/api/system.int32)

## Methods

### <a id="Tracon_EvalRun_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_EvalRun_Equals_Tracon_EvalRun_"></a> Equals\(EvalRun?\)

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

`other` [EvalRun](/api/tracon.evalrun/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_EvalRun_op_Equality_Tracon_EvalRun_Tracon_EvalRun_"></a> operator ==\(EvalRun?, EvalRun?\)

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

`left` [EvalRun](/api/tracon.evalrun/)?

`right` [EvalRun](/api/tracon.evalrun/)?

#### Returns

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

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

`left` [EvalRun](/api/tracon.evalrun/)?

`right` [EvalRun](/api/tracon.evalrun/)?

#### Returns

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