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

Method convert_to_prompt

src/program/mod.rs:237–247  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

235 }
236
237 pub fn convert_to_prompt(&self) -> Vec<String> {
238 let calls: &Vec<String> = &self.get_quality().critical_calls;
239 let mut prompt = Vec::new();
240 for call in calls {
241 if prompt.contains(call) {
242 continue;
243 }
244 prompt.push(call.to_string())
245 }
246 prompt
247 }
248
249 pub fn increase_visited(&mut self) {
250 self.quality.visited += 1

Callers 2

mutate_promptFunction · 0.80
test_seed_to_promptFunction · 0.80

Calls 2

get_qualityMethod · 0.80
pushMethod · 0.45

Tested by 1

test_seed_to_promptFunction · 0.64