ToolAuthorizationRequest
AgentPrism.Abstractions.dllDescribes one tool call awaiting an authorization decision.
public sealed record ToolAuthorizationRequest : IEquatable<ToolAuthorizationRequest>Inheritance
Section titled “Inheritance”object ← ToolAuthorizationRequest
Implements
Section titled “Implements”IEquatable<ToolAuthorizationRequest>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”ToolAuthorizationRequest()
Section titled “ ToolAuthorizationRequest()”public ToolAuthorizationRequest()Properties
Section titled “Properties”AgentName
Section titled “ AgentName”Gets the name of the agent making the call.
public required string AgentName { get; init; }Property Value
Section titled “Property Value”Effect
Section titled “ Effect”Gets the tool’s effect class.
public required ToolEffect Effect { get; init; }Property Value
Section titled “Property Value”RequiredPermission
Section titled “ RequiredPermission”Gets the permission name the tool declared, or null when the tool declared none.
public string? RequiredPermission { get; init; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”This is an opaque string. AgentPrism does not resolve, validate, or store its meaning anywhere but the audit trail — only the handler interprets it.
Gets the identity of the run making the call.
public required Guid RunId { get; init; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”Gets the calling run’s tenant.
public required string TenantId { get; init; }Property Value
Section titled “Property Value”ToolName
Section titled “ ToolName”Gets the tool name.
public required string ToolName { get; init; }Property Value
Section titled “Property Value”UserId
Section titled “ UserId”Gets the calling run’s user, or null when unknown.
public string? UserId { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(ToolAuthorizationRequest?)
Section titled “ Equals(ToolAuthorizationRequest?)”public bool Equals(ToolAuthorizationRequest? other)Parameters
Section titled “Parameters”other ToolAuthorizationRequest?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(ToolAuthorizationRequest?, ToolAuthorizationRequest?)
Section titled “ operator ==(ToolAuthorizationRequest?, ToolAuthorizationRequest?)”public static bool operator ==(ToolAuthorizationRequest? left, ToolAuthorizationRequest? right)Parameters
Section titled “Parameters”left ToolAuthorizationRequest?
right ToolAuthorizationRequest?
Returns
Section titled “Returns”operator !=(ToolAuthorizationRequest?, ToolAuthorizationRequest?)
Section titled “ operator !=(ToolAuthorizationRequest?, ToolAuthorizationRequest?)”public static bool operator !=(ToolAuthorizationRequest? left, ToolAuthorizationRequest? right)Parameters
Section titled “Parameters”left ToolAuthorizationRequest?
right ToolAuthorizationRequest?