-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
22 lines (18 loc) · 820 Bytes
/
main.py
File metadata and controls
22 lines (18 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from controller.adaptive_controller import AdaptiveController
from memory.short_term_memory import ShortTermMemory
from memory.long_term_memory import LongTermMemory
from utils.logger import log_thought
from utils.visualization import plot_confidence_scores
if __name__ == "__main__":
controller = AdaptiveController()
stm = ShortTermMemory()
ltm = LongTermMemory()
user_input = input("Enter your query: ")
result = controller.process(user_input)
log_thought(f"Debate result: {result}")
scores = [result["cognitive"]["confidence"], result["emotional"]["confidence"]]
labels = ["Cognitive", "Emotional"]
plot_confidence_scores(scores, labels)
stm.update("last_input", user_input)
ltm.save("last_result", result)
print(f"Final confidence: {result['final_confidence']}")