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

Method resolve_execution_style

core/src/agent/execution_mode.rs:148–165  ·  view source on GitHub ↗
(
        &self,
        prompt: &str,
        pre_analysis: Option<&PreAnalysis>,
    )

Source from the content-addressed store, hash-verified

146 }
147
148 fn resolve_execution_style(
149 &self,
150 prompt: &str,
151 pre_analysis: Option<&PreAnalysis>,
152 ) -> AgentStyle {
153 if let Some(analysis) = pre_analysis {
154 return analysis.intent;
155 }
156
157 let (style, confidence) = AgentStyle::detect_with_confidence(prompt);
158 tracing::debug!(
159 intent.classification = ?style,
160 intent.confidence = ?confidence,
161 intent.source = "local_fallback",
162 "Intent classified locally"
163 );
164 style
165 }
166
167 fn resolve_planning_decision(
168 &self,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected