Security Policy • Rust AI Agent SDK
SecurityPolicy: Security policy for sandbox execution
SecurityPolicy
Defined in the extras module.
Rust AI Agent SDK
Security policy for sandbox execution
Fields
| Name | Type | Description |
|---|---|---|
allow_network | bool | Allow network access |
allow_filesystem | bool | Allow file system access |
allow_subprocess | bool | Allow subprocess execution |
allowed_domains | Vec<String> | Allowed domains for network access |
allowed_paths | Vec<String> | Allowed paths for filesystem access |
max_execution_time | u64 | Maximum execution time in seconds |
max_memory | u64 | Maximum memory in bytes |
Methods
restrictive
fn restrictive() -> SelfCreate a restrictive security policy
permissive
fn permissive() -> SelfCreate a permissive security policy
Source
View on GitHubpraisonai/src/parity/extras.rs at line 397