# RunAgentStatistics

> 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.runagentstatistics/
> Summary: RunAgentStatistics: An agent's run summary.

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

An agent's run summary.

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

```csharp
public RunAgentStatistics()
```

## Properties

### <a id="Tracon_RunAgentStatistics_AgentName"></a> AgentName

The agent name.

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

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

This agent's number of runs that ended in an error.

```csharp
public required long FailedRuns { get; init; }
```

#### Property Value

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

This agent's total number of runs.

```csharp
public required long TotalRuns { get; init; }
```

#### Property Value

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

This agent's total token usage.

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

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

### <a id="Tracon_RunAgentStatistics_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_RunAgentStatistics_Equals_Tracon_RunAgentStatistics_"></a> Equals\(RunAgentStatistics?\)

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

`other` [RunAgentStatistics](/api/tracon.runagentstatistics/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_RunAgentStatistics_op_Equality_Tracon_RunAgentStatistics_Tracon_RunAgentStatistics_"></a> operator ==\(RunAgentStatistics?, RunAgentStatistics?\)

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

`left` [RunAgentStatistics](/api/tracon.runagentstatistics/)?

`right` [RunAgentStatistics](/api/tracon.runagentstatistics/)?

#### Returns

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

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

`left` [RunAgentStatistics](/api/tracon.runagentstatistics/)?

`right` [RunAgentStatistics](/api/tracon.runagentstatistics/)?

#### Returns

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