Optional strictIf true (default), the Persona must possess all
capabilities listed in the tool.requiredCapabilities array. If false, this check might be bypassed
or handled with more leniency (though generally not recommended for tools accessing sensitive resources).
Optional toolOptional. A mapping where keys are
tool IDs (ITool.id) or tool names (ITool.name), and values are arrays of FeatureFlag objects (or their string identifiers).
This allows linking specific tools to subscription features, meaning a user must have the corresponding
features enabled via their subscription tier to use the tool.
Optional logIf true, detailed information about permission checks for tool calls will be logged. Defaults to false.
Configuration options for the
ToolPermissionManager. This allows administrators to fine-tune how tool permissions are evaluated and enforced.ToolPermissionManagerConfig
Example