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

NameTypeDescription
enabledboolEnable planning
llmOption<String>Planning LLM (if different from main)
reasoningboolEnable reasoning during planning
auto_approveboolAuto-approve plans without user confirmation
read_onlyboolRead-only mode (only read operations allowed)

Methods

new

rust
fn new() -> Self

Create a new planning config

enabled

rust
fn enabled(mut self) -> Self

Enable planning

llm

rust
fn llm(mut self, llm: impl Into<String>) -> Self

Set planning LLM

Parameters:

NameType
llmimpl Into&lt;String&gt;

with_reasoning

rust
fn with_reasoning(mut self) -> Self

Enable reasoning

auto_approve

rust
fn auto_approve(mut self) -> Self

Enable auto-approve

read_only

rust
fn read_only(mut self) -> Self

Enable read-only mode

Source

View on GitHub

praisonai/src/config.rs at line 488


Related Documentation