Skip to main content

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

fn new() -> Self
Create a new planning config

enabled

fn enabled(mut self) -> Self
Enable planning

llm

fn llm(mut self, llm: impl Into<String>) -> Self
Set planning LLM Parameters:
NameType
llmimpl Into&lt;String&gt;

with_reasoning

fn with_reasoning(mut self) -> Self
Enable reasoning

auto_approve

fn auto_approve(mut self) -> Self
Enable auto-approve

read_only

fn read_only(mut self) -> Self
Enable read-only mode

Source

View on GitHub

praisonai/src/config.rs at line 488