Skip to content

TenantEgressPolicy

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

The set of model providers a tenant’s agents are allowed to call (egress policy).

public sealed record TenantEgressPolicy : IEquatable<TenantEgressPolicy>

objectTenantEgressPolicy

IEquatable<TenantEgressPolicy>

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

A tenant with no saved policy is unrestricted: the absence of a row, not an empty list, means “no limit”. Once a policy is saved, TenantEgressPolicy.AllowedProviders is the closed set of providers the tenant’s agent definitions may name in ModelBinding.Provider.

public TenantEgressPolicy()

Gets the closed set of provider names this tenant’s agents may call.

public required IReadOnlyList<string> AllowedProviders { get; init; }

IReadOnlyList<string>

Gets the tenant this policy belongs to.

public required string TenantId { get; init; }

string

Gets the time this policy was last written.

public required DateTimeOffset UpdatedAt { get; init; }

DateTimeOffset

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(TenantEgressPolicy? other)

other TenantEgressPolicy?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(TenantEgressPolicy?, TenantEgressPolicy?)

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

left TenantEgressPolicy?

right TenantEgressPolicy?

bool

operator !=(TenantEgressPolicy?, TenantEgressPolicy?)

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

left TenantEgressPolicy?

right TenantEgressPolicy?

bool