Skip to main content

assertToolAuthorized

@retinue/monorepo


@retinue/monorepo / backend/src / assertToolAuthorized

Function: assertToolAuthorized()

assertToolAuthorized(policy, context, tool): Promise<void>

Defined in: backend/src/authorization/index.ts:147

Guard for the execution path: throws forbidden when the tool may not run.

Parameters​

policy​

AuthorizationPolicy

context​

ExecutionContext

tool​

category​

string

name​

string

Returns​

Promise<void>