Skip to content

Commit

Permalink
Format NovaSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
ctavolazzi committed Feb 4, 2024
1 parent 7d09414 commit 4126ae7
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
67 changes: 67 additions & 0 deletions brainstorming/02-NovaSystem/NovaSystem.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import os
from Modules.Helpers.NovaHelper import NovaHelper
from Modules.Tribunal.NovaTribunal import NovaTribunal

class NovaSystem:
_DEFAULT_CONFIG = {
"id": 00,
"name": "NovaSystem",
"version": 0.0,
"author": "Christopher Tavolazzi",
"description": "The Nova System is an innovative use of AI that allows the AI to dynamically spin up multiple Experts that all weigh in on a single problem with multifaceted perspectives and solutions.",
"duty": "NovaSystem",
"experts": [NovaHelper(), NovaTribunal()]
}

def __init__(self, config=None):
self.config = {}
self.config = self.load_default_config()
self.set_id()
self.set_name()
self.set_path()
self.run_startup_tests()

def load_default_config(self):
stc(f'Loading default config for {self._DEFAULT_CONFIG["duty"]}...\n')
for key, value in self._DEFAULT_CONFIG.items():
print(f'{key}: {value}')
self.config[key] = value
stc(f'Config loaded successfully.\n')

def set_name(self):
if not hasattr(self, 'name'):
if 'name' in self.config:
self.name = self.config['name']

class NovaTribunal:
_DEFAULT_CONFIG = {
"id": 00,
"name": "NovaSystem",
"version": 0.0,
"author": "Christopher Tavolazzi",
"description": "The Nova System is an innovative use of AI that allows the AI to dynamically spin up multiple Experts that all weigh in on a single problem with multifaceted perspectives and solutions.",
"duty": "NovaSystem",
"experts": [NovaHelper(), NovaTribunal()]
}

def __init__(self):
pass

def evaluate(self, proposed_solution):
# Evaluate the proposed solution
print('Evaluating proposed solution...')
return 'Accepted'

def provide_critical_analysis(self, proposed_solution):
# Provide critical analysis of the proposed solution
print('Providing critical analysis of proposed solution...')
return 'Critical analysis provided.'


import os
from Nova import NovaSystem
from Nova import NovaTests

def main():
print("NovaSystem Initializing...")
print("Rest of program unimplemented.")
8 changes: 8 additions & 0 deletions hello.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
msg = "hello"

print(msg)

def say_hello(msg):
print(msg)

say_hello(msg)

0 comments on commit 4126ae7

Please sign in to comment.