-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_ai_service_fixed.java
More file actions
24 lines (19 loc) · 942 Bytes
/
test_ai_service_fixed.java
File metadata and controls
24 lines (19 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import simu.model.SimpleLocalAIService;
import simu.framework.Trace;
public class test_ai_service_fixed {
public static void main(String[] args) {
// Initialize trace system first
Trace.setTraceLevel(Trace.Level.INFO);
System.out.println("Testing SimpleLocalAIService...");
SimpleLocalAIService aiService = new SimpleLocalAIService();
System.out.println("Model Available: " + aiService.isModelAvailable());
if (aiService.isModelAvailable()) {
System.out.println("Testing AI decision...");
String prompt = "Should Apple invest in quantum computing? Answer with ACTION_TYPE|DESCRIPTION|CONFIDENCE";
String response = aiService.analyzeDecision(prompt, "TEST");
System.out.println("AI Response: " + response);
} else {
System.out.println("❌ AI service not available");
}
}
}