Skip to content

AgentPrismRoleMeta

Namespace AgentPrism · Assembly AgentPrism.AspNetCore.dll

Reports which role levels the current request’s caller satisfies.

public sealed record AgentPrismRoleMeta : IEquatable<AgentPrismRoleMeta>

objectAgentPrismRoleMeta

IEquatable<AgentPrismRoleMeta>

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

The UI uses this field to hide edit buttons the caller has no permission for; server-side authorization is still the only source of truth, this field is not a security measure. If the corresponding role policy (AgentPrismPolicies) is not registered in the consumer’s authorization configuration, the corresponding field returns true: there is no role restriction, the endpoint only passes through the existing three-layer protection.

public AgentPrismRoleMeta()

Whether the caller may write agent definitions, add MCP servers, and manage tenants and audit trails.

public required bool CanAdminister { get; init; }

bool

Whether the caller may, in addition to Reader, start runs, give approvals, and delete sessions.

public required bool CanOperate { get; init; }

bool

Whether the caller may read agents, runs, sessions, traces, and statistics.

public required bool CanRead { get; init; }

bool

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(AgentPrismRoleMeta? other)

other AgentPrismRoleMeta?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(AgentPrismRoleMeta?, AgentPrismRoleMeta?)

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

left AgentPrismRoleMeta?

right AgentPrismRoleMeta?

bool

operator !=(AgentPrismRoleMeta?, AgentPrismRoleMeta?)

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

left AgentPrismRoleMeta?

right AgentPrismRoleMeta?

bool