Skip to main content
Security features protect your agents and data.

Quick Start

1

Apply Security

use praisonai::{Agent, SecurityConfig};

let config = SecurityConfig::new()
    .allow_network(false)
    .allow_fs(false)
    .data_encryption(true);

let agent = Agent::new()
    .name("Secure Bot")
    .security(config)
    .build()?;

Security Features

FeatureDescription
GuardrailsContent validation
PoliciesBehavior rules
SandboxIsolated execution
EncryptionData protection

Best Practices

[!CAUTION] Always validate user input and restrict agent permissions in production.