MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / update_prompt

Method update_prompt

src/feedback/schedule.rs:125–133  ·  view source on GitHub ↗
(&self, prompt: &mut Prompt, deopt: &mut Deopt)

Source from the content-addressed store, hash-verified

123 }
124
125 pub fn update_prompt(&self, prompt: &mut Prompt, deopt: &mut Deopt) -> eyre::Result<()> {
126 if should_deterministic_mutate(deopt) {
127 mutate_prompt(prompt, self, deopt);
128 } else {
129 let combination = self.assemble_high_energy_combiantion();
130 prompt.set_combination(combination);
131 }
132 Ok(())
133 }
134
135 pub fn should_delete(&self, succ_rate: f32) -> bool {
136 let threshold = 0.1_f32;

Callers 1

mutate_promptMethod · 0.80

Calls 4

mutate_promptFunction · 0.85
set_combinationMethod · 0.80

Tested by

no test coverage detected