(&self, prompt: &str)
| 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, |