AllowAllToolAuthorizationHandler
Namespace AgentPrism · Assembly
AgentPrism.Core.dllThe default IToolAuthorizationHandler: allows every call.
public sealed class AllowAllToolAuthorizationHandler : IToolAuthorizationHandlerInheritance
Section titled “Inheritance”object ← AllowAllToolAuthorizationHandler
Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Registered with TryAdd by AddAgentPrism (the no-surprises rule — an
installation that registers nothing keeps today’s behavior exactly). A
consumer replaces the registration to enforce its own rule.
Constructors
Section titled “Constructors”AllowAllToolAuthorizationHandler()
Section titled “ AllowAllToolAuthorizationHandler()”public AllowAllToolAuthorizationHandler()Methods
Section titled “Methods”AuthorizeAsync(ToolAuthorizationRequest, CancellationToken)
Section titled “ AuthorizeAsync(ToolAuthorizationRequest, CancellationToken)”Decides whether the call described by request may proceed.
public ValueTask<ToolAuthorizationResult> AuthorizeAsync(ToolAuthorizationRequest request, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”request ToolAuthorizationRequest
The call being authorized.
cancellationToken CancellationToken
The cancellation token.
Returns
Section titled “Returns”ValueTask<ToolAuthorizationResult>
The decision.