Skip to content

AllowAllToolAuthorizationHandler

Namespace AgentPrism · Assembly AgentPrism.Core.dll

The default IToolAuthorizationHandler: allows every call.

public sealed class AllowAllToolAuthorizationHandler : IToolAuthorizationHandler

objectAllowAllToolAuthorizationHandler

IToolAuthorizationHandler

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

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.

public AllowAllToolAuthorizationHandler()

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)

request ToolAuthorizationRequest

The call being authorized.

cancellationToken CancellationToken

The cancellation token.

ValueTask<ToolAuthorizationResult>

The decision.