mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-09-04 09:00:51 +02:00
Add files via upload
This commit is contained in:
-1
@@ -38,7 +38,6 @@ final class CyberStrikeAIClient {
|
||||
}
|
||||
|
||||
enum AgentMode {
|
||||
NATIVE_REACT("Native ReAct", "/api/agent-loop/stream", null),
|
||||
EINO_SINGLE("Eino Single (ADK)", "/api/eino-agent/stream", null),
|
||||
DEEP("Deep (DeepAgent)", "/api/multi-agent/stream", "deep"),
|
||||
PLAN_EXECUTE("Plan-Execute", "/api/multi-agent/stream", "plan_execute"),
|
||||
|
||||
+11
-4
@@ -16,9 +16,16 @@ final class CyberStrikeAITab implements ITab {
|
||||
private final JTextField portField = new JTextField("8080");
|
||||
private final JCheckBox useHttpsBox = new JCheckBox("HTTPS", true);
|
||||
private final JPasswordField passwordField = new JPasswordField();
|
||||
private final JComboBox<String> agentModeBox = new JComboBox<>(new String[]{
|
||||
"Native ReAct", "Eino Single (ADK)", "Deep (DeepAgent)", "Plan-Execute", "Supervisor"
|
||||
});
|
||||
private final JComboBox<String> agentModeBox = new JComboBox<>(agentModeLabels());
|
||||
private static String[] agentModeLabels() {
|
||||
CyberStrikeAIClient.AgentMode[] modes = CyberStrikeAIClient.AgentMode.values();
|
||||
String[] labels = new String[modes.length];
|
||||
for (int i = 0; i < modes.length; i++) {
|
||||
labels[i] = modes[i].displayName;
|
||||
}
|
||||
return labels;
|
||||
}
|
||||
|
||||
private final JButton validateButton = new JButton("Validate");
|
||||
private final JButton clearButton = new JButton("Clear Output");
|
||||
private final JButton stopButton = new JButton("Stop");
|
||||
@@ -554,7 +561,7 @@ final class CyberStrikeAITab implements ITab {
|
||||
int idx = agentModeBox.getSelectedIndex();
|
||||
CyberStrikeAIClient.AgentMode mode = (idx >= 0 && idx < AGENT_MODES.length)
|
||||
? AGENT_MODES[idx]
|
||||
: CyberStrikeAIClient.AgentMode.NATIVE_REACT;
|
||||
: CyberStrikeAIClient.AgentMode.EINO_SINGLE;
|
||||
return new CyberStrikeAIClient.Config(baseUrl, password, mode);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user