MCPcopy Index your code
hub / github.com/AI45Lab/Code / with_prompt

Method with_prompt

core/src/subagent.rs:346–349  ·  view source on GitHub ↗

Override the preset prompt.

(mut self, prompt: impl Into<String>)

Source from the content-addressed store, hash-verified

344
345 /// Override the preset prompt.
346 pub fn with_prompt(mut self, prompt: impl Into<String>) -> Self {
347 self.prompt = Some(prompt.into());
348 self
349 }
350
351 /// Override the preset step budget.
352 pub fn with_max_steps(mut self, max_steps: usize) -> Self {

Calls

no outgoing calls