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

Method build

core/src/prompts.rs:456–458  ·  view source on GitHub ↗

Build the final system prompt by assembling slots around the core prompt. The core agentic behavior (Core Behaviour, Tool Usage Strategy, Completion Criteria) is always preserved. Users can only customize the edges. Note: This uses `AgentStyle::GeneralPurpose` as the base. Use `build_with_message()` to enable automatic intent-based style detection.

(&self)

Source from the content-addressed store, hash-verified

454 /// Note: This uses `AgentStyle::GeneralPurpose` as the base. Use
455 /// `build_with_message()` to enable automatic intent-based style detection.
456 pub fn build(&self) -> String {
457 self.build_with_style(self.style.unwrap_or_default())
458 }
459
460 /// Build the final system prompt, auto-detecting style from the initial message.
461 ///

Calls 1

build_with_styleMethod · 0.80