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

Function prompt_replacement

src/mutation.rs:74–77  ·  view source on GitHub ↗

Replace an uncovered API with a high energy API

(prompt: Vec<String>, schedule: &Schedule)

Source from the content-addressed store, hash-verified

72
73/// Replace an uncovered API with a high energy API
74fn prompt_replacement(prompt: Vec<String>, schedule: &Schedule) -> Vec<String> {
75 let prompt = prompt_energy_deletion(prompt, schedule);
76 prompt_insertion(prompt, schedule)
77}
78
79fn crossover(
80 prompt1: Vec<String>,

Callers 1

mutate_promptFunction · 0.85

Calls 2

prompt_energy_deletionFunction · 0.85
prompt_insertionFunction · 0.85

Tested by

no test coverage detected