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

Method resolve_planning_decision

core/src/agent/execution_mode.rs:167–179  ·  view source on GitHub ↗
(
        &self,
        style: AgentStyle,
        pre_analysis: Option<&PreAnalysis>,
    )

Source from the content-addressed store, hash-verified

165 }
166
167 fn resolve_planning_decision(
168 &self,
169 style: AgentStyle,
170 pre_analysis: Option<&PreAnalysis>,
171 ) -> bool {
172 match self.config.planning_mode {
173 PlanningMode::Disabled => false,
174 PlanningMode::Enabled => true,
175 PlanningMode::Auto => pre_analysis
176 .map(|analysis| analysis.requires_planning)
177 .unwrap_or_else(|| style.requires_planning()),
178 }
179 }
180
181 async fn record_execution_result(
182 &self,

Callers 1

Calls 1

requires_planningMethod · 0.80

Tested by

no test coverage detected