Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
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
Create a new autonomy config
level
fn level(mut self, level: AutonomyLevel) -> Self
Set autonomy level
Parameters:
| Name | Type |
|---|
level | AutonomyLevel |
no_approval
fn no_approval(mut self) -> Self
Disable approval requirement
max_actions
fn max_actions(mut self, max: usize) -> Self
Set max actions
Parameters:
fn allow_tool(mut self, tool: impl Into<String>) -> Self
Add allowed tool
Parameters:
| Name | Type |
|---|
tool | impl Into<String> |
fn block_tool(mut self, tool: impl Into<String>) -> Self
Add blocked tool
Parameters:
| Name | Type |
|---|
tool | impl Into<String> |
full_auto
fn full_auto(mut self) -> Self
Set to full auto mode
Source
View on GitHub
praisonai/src/config.rs at line 798