Planning Config • Rust AI Agent SDK
PlanningConfig: Configuration for planning mode
PlanningConfig
Defined in the config module.
Rust AI Agent SDK
Configuration for planning mode
Fields
| Name | Type | Description |
|---|---|---|
enabled | bool | Enable planning |
llm | Option<String> | Planning LLM (if different from main) |
reasoning | bool | Enable reasoning during planning |
auto_approve | bool | Auto-approve plans without user confirmation |
read_only | bool | Read-only mode (only read operations allowed) |
Methods
new
fn new() -> SelfCreate a new planning config
enabled
fn enabled(mut self) -> SelfEnable planning
llm
fn llm(mut self, llm: impl Into<String>) -> SelfSet planning LLM
Parameters:
| Name | Type |
|---|---|
llm | impl Into<String> |
with_reasoning
fn with_reasoning(mut self) -> SelfEnable reasoning
auto_approve
fn auto_approve(mut self) -> SelfEnable auto-approve
read_only
fn read_only(mut self) -> SelfEnable read-only mode
Source
View on GitHubpraisonai/src/config.rs at line 488