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

Function apply_planning_mode

sdk/python/src/lib.rs:5837–5849  ·  view source on GitHub ↗
(
    opts: RustSessionOptions,
    planning_mode: Option<&str>,
    planning: Option<bool>,
)

Source from the content-addressed store, hash-verified

5835}
5836
5837fn 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
5851fn delegate_task_args(
5852 agent: String,

Callers 3

sessionMethod · 0.70

Calls 3

with_planning_modeMethod · 0.80
with_planningMethod · 0.80
parse_planning_modeFunction · 0.70