Function
apply_planning_mode
(
opts: RustSessionOptions,
planning_mode: Option<&str>,
planning: Option<bool>,
)
Source from the content-addressed store, hash-verified
| 5835 | } |
| 5836 | |
| 5837 | fn apply_planning_mode( |
| 5838 | opts: RustSessionOptions, |
| 5839 | planning_mode: Option<&str>, |
| 5840 | planning: Option<bool>, |
| 5841 | ) -> PyResult<RustSessionOptions> { |
| 5842 | if let Some(mode) = planning_mode { |
| 5843 | Ok(opts.with_planning_mode(parse_planning_mode(mode)?)) |
| 5844 | } else if let Some(enabled) = planning { |
| 5845 | Ok(opts.with_planning(enabled)) |
| 5846 | } else { |
| 5847 | Ok(opts) |
| 5848 | } |
| 5849 | } |
| 5850 | |
| 5851 | fn delegate_task_args( |
| 5852 | agent: String, |