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

Method resolve_effective_style

core/src/agent/prompt_runtime.rs:23–36  ·  view source on GitHub ↗
(&self, prompt: &str)

Source from the content-addressed store, hash-verified

21 }
22
23 async fn resolve_effective_style(&self, prompt: &str) -> AgentStyle {
24 if let Some(style) = self.config.prompt_slots.style {
25 return style;
26 }
27
28 let (style, confidence) = AgentStyle::detect_with_confidence(prompt);
29 tracing::debug!(
30 intent.classification = ?style,
31 intent.confidence = ?confidence,
32 intent.source = "local",
33 "Intent classified locally"
34 );
35 style
36 }
37
38 pub(super) async fn resolve_prompt_mode(
39 &self,

Callers 1

resolve_prompt_modeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected