Skip to content

ModelProviderHealth

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A model provider’s status at the last check.

public sealed record ModelProviderHealth : IEquatable<ModelProviderHealth>

objectModelProviderHealth

IEquatable<ModelProviderHealth>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

public ModelProviderHealth()

The time the check was performed.

public DateTimeOffset CheckedAt { get; init; }

DateTimeOffset

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.

public string? Detail { get; init; }

string?

How long the check request took.

public TimeSpan? Latency { get; init; }

TimeSpan?

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

public IReadOnlyList<string> Models { get; init; }

IReadOnlyList<string>

The provider name.

public required string ProviderName { get; init; }

string

The check result.

public required ModelProviderHealthStatus Status { get; init; }

ModelProviderHealthStatus

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(ModelProviderHealth? other)

other ModelProviderHealth?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(ModelProviderHealth?, ModelProviderHealth?)

Section titled “ operator ==(ModelProviderHealth?, ModelProviderHealth?)”
public static bool operator ==(ModelProviderHealth? left, ModelProviderHealth? right)

left ModelProviderHealth?

right ModelProviderHealth?

bool

operator !=(ModelProviderHealth?, ModelProviderHealth?)

Section titled “ operator !=(ModelProviderHealth?, ModelProviderHealth?)”
public static bool operator !=(ModelProviderHealth? left, ModelProviderHealth? right)

left ModelProviderHealth?

right ModelProviderHealth?

bool