(&self, prompt: &mut Prompt, deopt: &mut Deopt)
| 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; |
no test coverage detected