MCPcopy Create free account
hub / github.com/AI45Lab/Code / with_planning

Method with_planning

core/src/agent_api/session_options.rs:191–198  ·  view source on GitHub ↗

Enable planning (shortcut for `with_planning_mode(PlanningMode::Enabled)`)

(mut self, enabled: bool)

Source from the content-addressed store, hash-verified

189
190 /// Enable planning (shortcut for `with_planning_mode(PlanningMode::Enabled)`)
191 pub fn with_planning(mut self, enabled: bool) -> Self {
192 self.planning_mode = if enabled {
193 PlanningMode::Enabled
194 } else {
195 PlanningMode::Disabled
196 };
197 self
198 }
199
200 /// Enable goal tracking
201 pub fn with_goal_tracking(mut self, enabled: bool) -> Self {

Calls

no outgoing calls