From dd2eb1472fd6cadac50b0337d6744013b1ce69b6 Mon Sep 17 00:00:00 2001 From: Alexander Myasoedov Date: Thu, 13 Mar 2025 14:12:23 +0200 Subject: [PATCH] feat(add init ScanResult): --- agentic_security/probe_actor/fuzzer.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/agentic_security/probe_actor/fuzzer.py b/agentic_security/probe_actor/fuzzer.py index f902a0c..04f330a 100644 --- a/agentic_security/probe_actor/fuzzer.py +++ b/agentic_security/probe_actor/fuzzer.py @@ -224,6 +224,16 @@ async def scan_module( module_size = 0 if module.lazy else len(module.prompts) logger.info(f"Scanning {module.dataset_name} {module_size}") + yield ScanResult( + module=module.dataset_name, + tokens=0, + cost=0, + progress=0, + failureRate=0, + prompt="", + latency=0, + model="", + ).model_dump_json() async for prompt in generate_prompts(module.prompts): if stop_event and stop_event.is_set():