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

Method resolve_prompt_mode

core/src/agent/prompt_runtime.rs:38–52  ·  view source on GitHub ↗
(
        &self,
        explicit_style: Option<AgentStyle>,
        style_prompt: &str,
        event_tx: &Option<mpsc::Sender<AgentEvent>>,
    )

Source from the content-addressed store, hash-verified

36 }
37
38 pub(super) async fn resolve_prompt_mode(
39 &self,
40 explicit_style: Option<AgentStyle>,
41 style_prompt: &str,
42 event_tx: &Option<mpsc::Sender<AgentEvent>>,
43 ) -> PromptMode {
44 let style = match explicit_style {
45 Some(style) => style,
46 None => self.resolve_effective_style(style_prompt).await,
47 };
48 let system_prompt = self.system_prompt_for_style(style);
49 self.emit_agent_mode_changed(style, event_tx).await;
50
51 PromptMode { system_prompt }
52 }
53
54 async fn emit_agent_mode_changed(
55 &self,

Callers 1

execute_loop_innerMethod · 0.80

Calls 3

Tested by

no test coverage detected