# ModelProviderHealth

> 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.modelproviderhealth/
> Summary: ModelProviderHealth: A model provider's status at the last check.

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

A model provider's status at the last check.

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

```csharp
public ModelProviderHealth()
```

## Properties

### <a id="Tracon_ModelProviderHealth_CheckedAt"></a> CheckedAt

The time the check was performed.

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

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

A short failure reason. **Carries no secret**: the
response body, headers, or API key are never written here under any
condition — only the HTTP status code and a short description.

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

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

How long the check request took.

```csharp
public TimeSpan? Latency { get; init; }
```

#### Property Value

 [TimeSpan](https://learn.microsoft.com/dotnet/api/system.timespan)?

### <a id="Tracon_ModelProviderHealth_Models"></a> Models

The model names the server reported. Empty if the check failed.

```csharp
public IReadOnlyList<string> Models { get; init; }
```

#### Property Value

 [IReadOnlyList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist\-1)<[string](https://learn.microsoft.com/dotnet/api/system.string)\>

### <a id="Tracon_ModelProviderHealth_ProviderName"></a> ProviderName

The provider name.

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

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

The check result.

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

 [ModelProviderHealthStatus](/api/tracon.modelproviderhealthstatus/)

## Methods

### <a id="Tracon_ModelProviderHealth_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_ModelProviderHealth_Equals_Tracon_ModelProviderHealth_"></a> Equals\(ModelProviderHealth?\)

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

`other` [ModelProviderHealth](/api/tracon.modelproviderhealth/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_ModelProviderHealth_op_Equality_Tracon_ModelProviderHealth_Tracon_ModelProviderHealth_"></a> operator ==\(ModelProviderHealth?, ModelProviderHealth?\)

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

`left` [ModelProviderHealth](/api/tracon.modelproviderhealth/)?

`right` [ModelProviderHealth](/api/tracon.modelproviderhealth/)?

#### Returns

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

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

`left` [ModelProviderHealth](/api/tracon.modelproviderhealth/)?

`right` [ModelProviderHealth](/api/tracon.modelproviderhealth/)?

#### Returns

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