AutonomyConfig
Defined in the config module.Rust AI Agent SDK Configuration for agent autonomy
Fields
| Name | Type | Description |
|---|---|---|
level | AutonomyLevel | Autonomy level |
require_approval | bool | Require approval for destructive actions |
max_actions | Option<usize> | Maximum autonomous actions before pause |
allowed_tools | Vec<String> | Allowed tools for autonomous execution |
blocked_tools | Vec<String> | Blocked tools (never run autonomously) |
Methods
new
level
| Name | Type |
|---|---|
level | AutonomyLevel |
no_approval
max_actions
| Name | Type |
|---|---|
max | usize |
allow_tool
| Name | Type |
|---|---|
tool | impl Into<String> |
block_tool
| Name | Type |
|---|---|
tool | impl Into<String> |
full_auto
Source
View on GitHub
praisonai/src/config.rs at line 798
