CallPolicy
Host-owned restrictions on a concrete call, independent of its consent.
CallPolicy::authorize()
abstract public function authorize(Milpa\ToolRuntime\Contracts\ToolContext $context, Milpa\ToolRuntime\ToolDefinition $tool, array $arguments): Milpa\ToolRuntime\Policy\AuthorizationResultRestrict a concrete call after its declared scopes have passed.
Parameters
| Name | Type | Description |
|---|---|---|
| $context | Milpa\ToolRuntime\Contracts\ToolContext | |
| $tool | Milpa\ToolRuntime\ToolDefinition | |
| $arguments | array<string, mixed> |