Skip to main content

SecurityPolicy

Defined in the extras module.
Rust AI Agent SDK Security policy for sandbox execution

Fields

NameTypeDescription
allow_networkboolAllow network access
allow_filesystemboolAllow file system access
allow_subprocessboolAllow subprocess execution
allowed_domainsVec<String>Allowed domains for network access
allowed_pathsVec<String>Allowed paths for filesystem access
max_execution_timeu64Maximum execution time in seconds
max_memoryu64Maximum memory in bytes

Methods

restrictive

fn restrictive() -> Self
Create a restrictive security policy

permissive

fn permissive() -> Self
Create a permissive security policy

Source

View on GitHub

praisonai/src/parity/extras.rs at line 397