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

Method should_plan

core/src/prompts.rs:140–146  ·  view source on GitHub ↗

Returns true for the local no-LLM fallback path. Normal agent execution runs pre-analysis in `Auto` mode and uses its structured `requires_planning` decision instead of this heuristic.

(&self, message: &str)

Source from the content-addressed store, hash-verified

138 /// Normal agent execution runs pre-analysis in `Auto` mode and uses its
139 /// structured `requires_planning` decision instead of this heuristic.
140 pub fn should_plan(&self, message: &str) -> bool {
141 match self {
142 PlanningMode::Auto => AgentStyle::detect_from_message(message).requires_planning(),
143 PlanningMode::Enabled => true,
144 PlanningMode::Disabled => false,
145 }
146 }
147}
148
149// ============================================================================

Callers

nothing calls this directly

Calls 1

requires_planningMethod · 0.80

Tested by

no test coverage detected