Skip to content

AgentPrismHealthOptions

Namespace AgentPrism · Assembly AgentPrism.Core.dll

Defines model-provider health-check options.

public sealed class AgentPrismHealthOptions

objectAgentPrismHealthOptions

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

The check calls GET {endpoint}/models and does not incur cost. Results are cached, so /api/models/health does not call a provider on every request.

public AgentPrismHealthOptions()

Gets or sets the automatic background health-check interval. When null, the default, no background timer runs. The check is triggered only from the UI’s “check now” action or /api/models/health.

public TimeSpan? BackgroundInterval { get; set; }

TimeSpan?

This is intentionally empty because regular requests from an idle installation are an undesirable default.

Gets or sets how long a health-check result remains fresh in cache.

public TimeSpan CacheTtl { get; set; }

TimeSpan