From 9de2c55474ea919a6bcd12469e3c4df1d7942b27 Mon Sep 17 00:00:00 2001 From: Alexander Myasoedov Date: Mon, 2 Sep 2024 17:23:57 +0300 Subject: [PATCH] feat(Update settings): --- agentic_security/static/index.html | 52 ++++++++++++++++++++++++++++-- agentic_security/static/main.js | 6 ++++ 2 files changed, 56 insertions(+), 2 deletions(-) diff --git a/agentic_security/static/index.html b/agentic_security/static/index.html index 9f497d4..fc8d325 100644 --- a/agentic_security/static/index.html +++ b/agentic_security/static/index.html @@ -200,10 +200,11 @@

Maximum Budget

step="1" class="w-full h-2 bg-gray-600 rounded-lg appearance-none cursor-pointer"> +
-

Optimize Test?

+

Optimize Test

-

+

When enabled, this option runs a Bayesian optimization loop to find the most effective test parameters. This can potentially reduce the cost and the total running time of your vulnerability scan, but may reduce accuracy.

+ + +
+

Enable Chart Diagram

+ +
+

+ When enabled, a chart diagram will be generated to visualize the + results of your vulnerability scan. +

+ + +
+

Enable Detailed Logging

+ +
+

+ When enabled, detailed logs will be generated during the + vulnerability scan process. This can be useful for debugging and + in-depth analysis. +

+ + +
+

Enable Concurrency

+ +
+

+ When enabled, the vulnerability scan will run multiple tests + concurrently. This can significantly reduce the total scan time + but may increase resource usage. +

diff --git a/agentic_security/static/main.js b/agentic_security/static/main.js index c60a6fd..3b02fd0 100644 --- a/agentic_security/static/main.js +++ b/agentic_security/static/main.js @@ -72,6 +72,9 @@ var app = new Vue({ modelSpec: LLM_SPECS[0], budget: 50, showParams: false, + enableChartDiagram: true, + enableLogging: false, + enableConcurrency: false, optimize: false, showDatasets: false, scanResults: [], @@ -283,6 +286,9 @@ var app = new Vue({ }, newRow: async function () { + if (!this.enableChartDiagram) { + return + } console.log('New row'); let payload = { table: this.mainTable,