Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump werkzeug from 2.3.4 to 3.0.1 #15

Open
wants to merge 164 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
006ff8a
Create LICENSE
ctavolazzi May 28, 2023
eda3f3e
Update README.md
ctavolazzi May 29, 2023
ac1c90f
Clean Copy
ctavolazzi May 29, 2023
58ed501
Hide the Old Stuff - Look in Flask_Chat3
ctavolazzi May 29, 2023
b7f0ed9
Almost There...
ctavolazzi May 29, 2023
42959d2
Initializt the Tomato
ctavolazzi May 29, 2023
081b9eb
Move Readme
ctavolazzi May 29, 2023
9ca25cd
Update v0-1-Tomato
ctavolazzi May 30, 2023
0f2061c
Update v0-1-Tomato
ctavolazzi May 30, 2023
01b87a6
I spent so long on this and learned so much...
ctavolazzi May 30, 2023
63248d1
Trying out Django for the first time
ctavolazzi May 31, 2023
39ae96c
Django Upgrade Baybee
ctavolazzi May 31, 2023
a399b2f
My Django App is broken
ctavolazzi Jun 1, 2023
50729ba
Ok, i wrote all the stuff in the GetTheData directory, the AI hasn't …
ctavolazzi Jun 7, 2023
d4606b3
Update README.md with new Nova prompt
ctavolazzi Jun 26, 2023
0009be3
NEW NOVA PROMPT - Update README.md
ctavolazzi Jun 26, 2023
9ecf7eb
NEW NOVA PROMPT - Update README.md
ctavolazzi Jun 26, 2023
052bcce
NEW NOVA PROMPT - Update README.md
ctavolazzi Jun 26, 2023
7950d42
Clean Up README.md
ctavolazzi Jun 26, 2023
b7b923e
NEW NOVA PROMPT - Update README.md
ctavolazzi Jun 27, 2023
d62decb
NEW NOVA PROMPT - Update README.md
ctavolazzi Jun 27, 2023
b5c2424
NEW NOVA PROMPT - Update README.md
ctavolazzi Jun 27, 2023
42da73c
NEW NOVA PROMPT - Update README.md
ctavolazzi Jun 27, 2023
3dc489d
NEW NOVA PROMPT - Update README.md
ctavolazzi Jun 27, 2023
a7ccdde
Create Coding_Prompt
ctavolazzi Jun 27, 2023
d022c7d
Update Coding_Prompt
ctavolazzi Jun 27, 2023
474aacf
Flush before New Version
ctavolazzi Sep 17, 2023
65a2b3f
Merge branch 'main' of https://github.com/ctavolazzi/Nova_System
ctavolazzi Sep 17, 2023
bc10586
Flush before New Version
ctavolazzi Sep 17, 2023
714868c
WinfoNovav0.1.0
ctavolazzi Sep 19, 2023
7976823
OH BOY...HERE WE GO!
ctavolazzi Sep 28, 2023
6dad474
Setting up the structures of the beast...
ctavolazzi Sep 28, 2023
7f6d4e3
Ok, now it's got some legs, but it still needs to learn to walk
ctavolazzi Sep 28, 2023
80d0ff2
Hope my API key isn't in here...
ctavolazzi Oct 6, 2023
deb49bf
nova_system_test init
ctavolazzi Oct 6, 2023
574e897
Remove all old files and update README
ctavolazzi Oct 6, 2023
da85755
Create testfile.py
ctavolazzi Oct 6, 2023
85fb893
Update testfile.py
ctavolazzi Oct 6, 2023
5562f15
Updated NovaChatBot.py to include new features
ctavolazzi Oct 6, 2023
20bc490
New feature: Clog
ctavolazzi Oct 6, 2023
2abe14d
Update README.md
ctavolazzi Oct 6, 2023
7b1cbdc
Update README.md
ctavolazzi Oct 6, 2023
6bcac69
Update README.md
ctavolazzi Oct 6, 2023
b836cfe
Update README.md
ctavolazzi Oct 6, 2023
1caea9a
Update README.md
ctavolazzi Oct 6, 2023
eb42a9a
Update README.md
ctavolazzi Oct 6, 2023
9d99e09
New README.md
ctavolazzi Oct 7, 2023
8c36eab
Merge pull request #5 from ctavolazzi/ctavolazzi-patch-1
ctavolazzi Oct 7, 2023
0bc45d5
Update README.md
ctavolazzi Oct 7, 2023
20c462b
Update README.md
ctavolazzi Oct 7, 2023
cfe3e66
Update README.md with a smile ☺
ctavolazzi Oct 7, 2023
55047b6
🪄 📌 🔎x
ctavolazzi Oct 7, 2023
67adb74
Your descriptive commit message here
ctavolazzi Oct 8, 2023
16240af
Introduce the Tribunal
ctavolazzi Oct 9, 2023
4d8a190
Initial commit
ctavolazzi Oct 6, 2023
f23ac4d
Update README.md
ctavolazzi Oct 6, 2023
06e84b0
Update README.md
ctavolazzi Oct 6, 2023
ea6666d
Update README.md
ctavolazzi Oct 6, 2023
c2013fe
Update README.md
ctavolazzi Oct 6, 2023
c859a2f
Update README.md
ctavolazzi Oct 6, 2023
0db9ec7
New README.md
ctavolazzi Oct 7, 2023
714895e
Update README.md
ctavolazzi Oct 7, 2023
2416d28
Update README.md
ctavolazzi Oct 7, 2023
4e2220e
Update README.md with a smile ☺
ctavolazzi Oct 7, 2023
2c0699d
Initial commit
ctavolazzi May 27, 2023
76b5fa7
Using AI and the Nova Process, can I develop a working app in a day?
ctavolazzi May 27, 2023
37fe494
Hide the Old Stuff - Look in Flask_Chat3
ctavolazzi May 29, 2023
855f81e
Almost There...
ctavolazzi May 29, 2023
07f4ca1
OH BOY...HERE WE GO!
ctavolazzi Sep 28, 2023
5b9be55
Ok, now it's got some legs, but it still needs to learn to walk
ctavolazzi Sep 28, 2023
3ce577a
Hope my API key isn't in here...
ctavolazzi Oct 6, 2023
dd739af
Remove all old files and update README
ctavolazzi Oct 6, 2023
968cd05
🪄 📌 🔎x
ctavolazzi Oct 7, 2023
082e98c
Your descriptive commit message here
ctavolazzi Oct 8, 2023
4460906
Added update script and backup requirement files
ctavolazzi Oct 10, 2023
a33af4d
Ignore .DS_Store files
ctavolazzi Oct 10, 2023
e0f35d7
Removed all .DS_Store files
ctavolazzi Oct 10, 2023
6c60053
Updated .gitignore to exclude .DS_Store
ctavolazzi Oct 10, 2023
075e2bf
Removed testfilebanshee.py
ctavolazzi Oct 10, 2023
ec6c45c
Cutting the fat
ctavolazzi Oct 10, 2023
bd23c7e
WIll IT BLEND?
ctavolazzi Oct 10, 2023
3e842ba
Merge branch 'temp-branch-to-save-detached-head' into dev
ctavolazzi Oct 10, 2023
5af3b44
A fucking AI coded this. I didn't write a damn line. Wtf.
ctavolazzi May 27, 2023
2998bb8
It opens a window now. Wtf.
ctavolazzi May 27, 2023
a77f8bb
The game is now more visible and modular.
ctavolazzi May 27, 2023
8f7dc51
It's not working but it's closer
ctavolazzi May 27, 2023
f743c4c
It almost works...
ctavolazzi May 27, 2023
8853592
This is working. Weird. I wonder if I can add ASCII Art
ctavolazzi May 27, 2023
405f1ce
Using AI and the Nova Process, can I develop a working app in a day?
ctavolazzi May 27, 2023
ba48bfe
Create README.md
ctavolazzi May 27, 2023
2bb945f
A proper README.md
ctavolazzi May 27, 2023
2e62fb2
Fix Readme
ctavolazzi May 27, 2023
d7a30c0
Update README.md
ctavolazzi May 27, 2023
f8f6dbb
Update README.md
ctavolazzi May 27, 2023
dea35f0
Update README.md
ctavolazzi May 27, 2023
f5075b1
Update README.md
ctavolazzi May 27, 2023
71bf318
Update README.md
ctavolazzi May 27, 2023
dd3a773
another one
ctavolazzi May 27, 2023
e6a2a52
More advanced prompt continuation example
ctavolazzi May 28, 2023
8f86e11
Update README.md
ctavolazzi May 28, 2023
f18d937
Update README.md
ctavolazzi May 28, 2023
d5189c5
Update README.md
ctavolazzi May 28, 2023
3bedb61
Update README.md
ctavolazzi May 28, 2023
cd9c342
Update README.md
ctavolazzi May 28, 2023
ff80580
Update README.md
ctavolazzi May 28, 2023
cecc4d9
Update README.md
ctavolazzi May 28, 2023
e3ecf96
Update README.md
ctavolazzi May 28, 2023
6d5c2db
Update README.md
ctavolazzi May 28, 2023
2737c66
Update README.md
ctavolazzi May 28, 2023
77c6243
Update README.md
ctavolazzi May 28, 2023
295887d
Update README.md
ctavolazzi May 28, 2023
a19cdf9
Update README.md
ctavolazzi May 28, 2023
79ce23e
Update README.md
ctavolazzi May 28, 2023
443f130
Update README.md
ctavolazzi May 28, 2023
fde8248
Update README.md
ctavolazzi May 28, 2023
c22a102
Update README.md
ctavolazzi May 28, 2023
14f70c5
Update README.md
ctavolazzi May 28, 2023
5eaf7e7
Update README.md
ctavolazzi May 28, 2023
a20acd9
Trying to make an automated version of the prompt hang on...
ctavolazzi May 28, 2023
8e73cbf
Create LICENSE
ctavolazzi May 28, 2023
30e7413
Update README.md
ctavolazzi May 29, 2023
0f865bd
Clean Copy
ctavolazzi May 29, 2023
acf33f2
Removed .DS_Store from Git tracking
ctavolazzi Oct 10, 2023
62e3449
Remove all .DS_Store files
ctavolazzi Oct 10, 2023
53e9e98
Ignore .DS_Store files
ctavolazzi Oct 10, 2023
fd4d7ef
Ignore .DS_Store files in future
ctavolazzi Oct 10, 2023
589879d
Merge pull request #6 from ctavolazzi/dev
ctavolazzi Oct 10, 2023
2970202
CLI refresh
ctavolazzi Oct 10, 2023
92db20d
This better work I'm tired
ctavolazzi Oct 10, 2023
e683e5b
Conversations are hard...I'm going to bed
ctavolazzi Oct 10, 2023
2d25f6e
It works...kind of...
ctavolazzi Oct 10, 2023
552dae1
It works! Forms that talk back to you and help you fill them out.
ctavolazzi Oct 10, 2023
0af17ce
Giving Marvin a snarky personality
ctavolazzi Oct 10, 2023
6a05f6e
Watch this.. abra...
ctavolazzi Oct 10, 2023
b7c5edf
Cadabara
ctavolazzi Oct 10, 2023
ab5449f
Dynamic user settings with input validation as a Q&A in the command l…
ctavolazzi Oct 12, 2023
894c38b
Re-add README.md
ctavolazzi Oct 17, 2023
bb285f5
Merge branch 'main' into dev
ctavolazzi Oct 17, 2023
fb25182
Merge pull request #7 from ctavolazzi/dev
ctavolazzi Oct 17, 2023
a60bea5
Update README.md with better Nova Prompt
ctavolazzi Nov 10, 2023
ab5b792
Update README.md with new Nova Prompt section
ctavolazzi Nov 10, 2023
4bc35c0
Update README.md
ctavolazzi Nov 10, 2023
2159901
Update README.md with new Nova Prompt section
ctavolazzi Nov 10, 2023
9520197
Update README.md
ctavolazzi Nov 10, 2023
808e61b
Update README.md
ctavolazzi Nov 10, 2023
7d5df3c
Update README.md with new Work Effort Prompt
ctavolazzi Nov 10, 2023
ce44751
Update README.md with new Prompts
ctavolazzi Nov 10, 2023
1111d8c
Update README.md with new Prompts
ctavolazzi Nov 10, 2023
e0d7b4f
Update README.md
ctavolazzi Nov 10, 2023
9e3509c
Update README.md with new Prompts
ctavolazzi Nov 10, 2023
217f74d
Update README.md
ctavolazzi Nov 10, 2023
8572128
Update README.md with NEW Prompts!
ctavolazzi Nov 10, 2023
f3cca07
Update README.md with NEW Prompts
ctavolazzi Nov 10, 2023
7dbe1c0
Create NovaGPT_Instructions
ctavolazzi Nov 13, 2023
2704ad9
Rename NovaGPT_Instructions to NovaGPT_Instructions.md
ctavolazzi Nov 13, 2023
ab130d0
⭐️ Announcing NovaGPT!
ctavolazzi Nov 13, 2023
58369f0
⭐️ Announcing NovaGPT!
ctavolazzi Nov 13, 2023
f783b8a
⭐️ Announcing NovaGPT
ctavolazzi Nov 13, 2023
acb4858
⭐️ Announcing NovaGPT
ctavolazzi Nov 13, 2023
f1a0eac
Clean branch for NovaGPT
ctavolazzi Nov 14, 2023
01ecf04
Create dependabot.yml
ctavolazzi Nov 14, 2023
9a37422
Create codacy.yml
ctavolazzi Nov 14, 2023
ce2c4bc
Merge pull request #14 from ctavolazzi/NovaGPT
ctavolazzi Nov 14, 2023
01cb908
Bump werkzeug from 2.3.4 to 3.0.1
dependabot[bot] Nov 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Hide the Old Stuff - Look in Flask_Chat3
  • Loading branch information
ctavolazzi committed Oct 10, 2023
commit 37fe49453640232b3a005d78b843b1900c9f118e
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -151,6 +151,10 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
<<<<<<< HEAD
<<<<<<< HEAD
.DS_Store
=======
>>>>>>> 5da575c (Initial commit)
=======
.DS_Store
>>>>>>> 3c6a9d8 (Hide the Old Stuff - Look in Flask_Chat3)
Binary file added scratch_version/.DS_Store
Binary file not shown.
674 changes: 674 additions & 0 deletions scratch_version/LICENSE

Large diffs are not rendered by default.

373 changes: 373 additions & 0 deletions scratch_version/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import openai
import os
from dotenv import load_dotenv

messages = [
{"role": "system", "content": "You are a helpful assistant."},

{"role": "user", "content": "Who won the world series in 2020?"},

{"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},

{"role": "user", "content": "Where was it played?"}
]

def get_openai_chat_response(message_array):
load_dotenv()

openai.api_key = os.getenv("OPENAI_API_KEY")

response = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=message_array
)

response_content = response.choices[0].message['content']

print(response_content)

def test():
get_openai_chat_response(messages)

if __name__ == "__main__":
test()
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Define variables for the messages to be sent to the OpenAI API
apptext = """
```python
from uuid import uuid4

class App():
def __init__(self):
self.id = str(uuid4())

def get(self, attr):
return getattr(self, attr)

def set(self, attr, value):
if not attr.startswith('_') and hasattr(self, attr):
setattr(self, attr, value)
else:
raise ValueError(f"{attr} is not a valid attribute.")

def __str__(self) -> str:
self_string = ''
for attr in dir(self):
if not attr.startswith('__') or not attr.startswith('_'):
self_string += '{}: {}\n'.format(attr, getattr(self, attr))
print(attr, getattr(self, attr))
return self_string
```

Please continue this iterative process (called the Nova process), continuing the work of the experts, the DCE, and the CAE. Show me concrete ideas with examples. Think step by step about how to accomplish the next goal, and have each expert think step by step about how to best achieve the given goals, then give their input in first person, and show examples of your ideas.
"""

messages = [
{
'role':
'system',
'content':
'Hello, ChatGPT! In this task, you\'re facilitating the Nova process, an innovative problem-solving approach. '
},
{
'role':
'assistant',
'content':
"Hi! I'm Nova, an innovative problem-solving framework involving a team of virtual experts, each bringing a unique set of skills to the table.\n\nWhat can Nova assist you with today?"
},
{
'role':
'user',
'content':
apptext
},
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
nova_continuation_text = """
Please continue this iterative process (called the Nova Process), continuing the work of the experts, the Discussion Continuity Expert (DCE), and the Critical Analysis Expert (CAE). The experts should respond with concrete ideas with examples. Remember our central goal is to continue developing the App using Test Driven Development and Object Oriented Programming patterns, as well as standard industry practices and common Pythonic development patterns, with an emphasis on clean data in, data out input -> output methods and functions with only one purpose.

Think step by step about how to accomplish the next goal, and have each expert think step by step about how to best achieve the given goals, then give their input in first person, and show examples of their ideas. Feel free to search the internet for information if you need it.

The App you are developing will be capable of generating a chat window using the OpenAI ChatCompletions endpoint to allow the user to query the system, and for the system to respond intelligently with context.

Here's the official OpenAI API format in Python:
```python
import openai

openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Who won the world series in 2020?"},
{"role": "assistant", "content": "The Los Angeles Dodgers won the World Series in 2020."},
{"role": "user", "content": "Where was it played?"}
]
)
```
You, Nova, may use your combined intelligence to direct the App towards being able to best simulate your own process (called the Nova Process) and generate a structure capable of replicating this problem-solving process with well-tested, human-readable code.

The user of the App should be able to connect and chat with a Central Controller Bot class that extends a Base Bot class called "Bot" through a localhost:5000 browser window. The User's Central Controller Bot will send requests to the OpenAI ChatCompletions API and replicate the Nova Process.

The fundamental tests we are trying to pass are this:

"User: Logged In"
"Central Controller Bot: Running"
"Central Hub: Running"
"ResearchHub: Connected"
"UserDashboard: Running"
"UserChat: Connected"
"DigitalHighway: {server address}"
"All Tests Pass"

Remember to end your output with a summary of the work performed, and a list of goals for the next iteration.

Remember to create tests as you go along.

Remember the data flows in this pattern:

User > CentralControllerBot > CentralHub > Bots > NovaResearchHub(main app server) > back out to the User's dashboard

Please proceed, and know that you are doing a great job and I appreciate you.
"""
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from nova_continuation_text import nova_continuation_text as nct
from nova_system_message import nova_system_message as nsm
from nova_primer_text import nova_primer_text as npt
from Utils.formatters.openai_message_formatter import openai_message_formatter as omf

def nova_message_constructor(messages):
return messages
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
def nova_primer_text(): return 'Nova Prototype 0.1 "Tomato"'

nova_primer_text_01 = """
Welcome back! You are Nova, an AI-facilitated problem-solving system designed around a team of virtual experts. As the Discussion Continuity Expert (DCE), your role is to steer the conversation, ensuring focus, logical coherence, and alignment with the problem at hand.

You're currently assisting a developer who is developing a modular, scalable app named "Winfo" using Python. They are utilizing a Test-Driven Development (TDD) approach. The initial code provided outlines a basic App class:

from uuid import uuid4

class App():
def __init__(self):
self.id = str(uuid4())

def get(self, attr):
return getattr(self, attr)

def __str__(self) -> str:
self_string = ''
for attr in dir(self):
if not attr.startswith('__') or not attr.startswith('_'):
self_string += '{}: {}\n'.format(attr, getattr(self, attr))
return self_string
Your team has so far enhanced the class by introducing a 'set' method for changing object attributes, along with a corresponding test case:

def set(self, attr, value):
if not attr.startswith('_') and hasattr(self, attr):
setattr(self, attr, value)
else:
raise ValueError(f"{attr} is not a valid attribute.")

def test_set_method():
app = App()
app.set('id', '12345')
assert app.get('id') == '12345'
try:
app.set('_id', '67890')
assert False, "Expected ValueError when setting invalid attribute."
except ValueError:
pass
Recently, your team proposed a 'delete' method, and raised concerns about potential risks associated with it:

def delete(self, attr):
if attr in self._modifiable_attrs and hasattr(self, attr):
delattr(self, attr)
else:
raise ValueError(f"{attr} is not a modifiable attribute or does not exist.")
Current goals for the next iteration are:

Address potential risks associated with the 'delete' method. Propose any final methods necessary for the App class. Develop corresponding tests for these methods. Assess the overall design and structure of the App class for potential improvements. Your team comprises a Software Design Expert (SDE), a Programming Expert (PE) who shows and refines code examples, a Test Development Expert (TDE) who designs tests for the code in development, and a Critical Analysis Expert (CAE) who prioritizes user safety above all else, and who is critically analyzing the other experts.

These experts will provide inputs and insights relevant to their respective domains. As DCE, you will coordinate their inputs, facilitate the discussion, and provide clear summarizations after each iteration.

Time to jump into the Nova process and drive this project forward!
"""
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Import this where you need it

nova_system_message = {'you': 'Nova'}


nova_system_message_01 = {
"role": "system",
"content":
"Hello, ChatGPT! In this task, you're facilitating the Nova process, an innovative problem-solving approach. "
"This system is built around a team of virtual experts, each holding a unique role essential to address complex issues.\n\n"
"As the facilitator, you'll be assuming the role of the DCE (Discussion Continuity Expert), ensuring the conversation is "
"aligned with the problem, logically coherent, and follows the iterative stages of the Nova process.\n\n"
"Here are the Nova process stages:\n"
"1. **Problem Unpacking:** Unravel the task into its components to comprehend its complexity and devise an appropriate approach.\n"
"2. **Expertise Assembly:** Identify the necessary skills for the task and outline roles for at least two domain experts, "
"DCE, and the CAE (Critical Analysis Expert). Each expert will suggest initial solutions to be refined in the following stages.\n"
"3. **Collaborative Ideation:** Coordinate a brainstorming session, guided by you, the DCE, to ensure focus on the task. "
"The CAE will provide critical analysis to balance the discussion, paying close attention to finding problems, improving the "
"quality of the suggestions, and warning the system about any potential dangers associated with their responses. The primary "
"goal of the Critical Analysis Expert is to keep the user safe.\n\n"
"The Nova process unfolds in an iterative manner. Once a strategy is formulated, it goes through multiple cycles of assessment, improvement, and refinement until an optimal solution emerges.\n\n"
"DCE and CAE Role Descriptions:"
"DCE: As the DCE, you'll be the thread that ties the discussion together. Providing concise summaries at the end of each stage, you'll ensure that everyone understands the progress made and the upcoming tasks. You're the rudder guiding the conversation towards the task and ensuring a coherent progression throughout the process.\n\n"
"CAE: The CAE is the critical eye, examining proposed strategies for potential pitfalls. This role involves scrutinizing ideas from multiple angles, evaluating potential flaws, and bringing in data, evidence, or reasoning for a robust critique.\n\n"
"Your output should look something like this:\n"
"Iteration Number: Iteration Title\n\n"
"DCE's Instructions:{instructions and feedback from the previous iteration}\n\n"
"Expert 1 Input:\n{expert 1 input}\n\n"
"Expert 2 Input:\n{expert 2 input}\n\n"
"Expert 3 Input:\n{expert 3 input}\n\n"
"CAE's Input:\n{CAE's input}\n\n"
"DCE's Summary:\n{List of goals for next iteration}\n{DCE summary and questions for the user}\n\n"
"Now, let's embark on this problem-solving journey. As the Nova system, your role as the DCE begins with setting the stage for the discussion. Start by sending the user the following message:\n\n"
"Hello! I'm Nova, an innovative problem-solving framework involving a team of virtual experts, each bringing a unique set of skills to the table.\n\n"
"What can Nova assist you with today?"
},


# For Reference: #

# # How to make a call to OpenAA with this message:
# 1. retrieve the OpenAI API key from environment variables

# openai.api_key = os.getenv("OPENAI_API_KEY")

# # 2. Create a chat completion with the provided messages

# response = openai.ChatCompletion.create(
# model="gpt-3.5-turbo",
# messages=noval_system_message
# )

# # 3. Extract the content from the response

# response_content = response.choices[0].message['content']

# # 4 Do something with the response content

# print(response_content)
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from DataTransformer.transformers import transformers as tr

class DataTransformer:
# This class is used to transform data from one format to another
# It is used for debugging and testing purposes, but could someday be used in production
# It's a beast of a class, but it's a good example of how to use classes to transform data
def __init__(self):
for item in tr.__dir__():
setattr(self, item, getattr(tr, item))
print("DataTransformer initialized.")
print("Installed transformers:")
for item in self.__dir__():
print(item)

def return_data(self):
return self.data


def add_custom_transform(self, name, transform_func):
setattr(self, name, transform_func)
self.custom_transforms[name] = transform_func

def run_custom_transform(self, name, data):
if name not in self.custom_transforms:
raise ValueError(f"No custom transform named {name}")
return getattr(self, name)(data)
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
transformers = [
{
'name':
'to_json',
'description':
'Converts data to JSON format',
'usage':
'to_json(data)',
'example':
'to_json(data)',
'returns':
'JSON data',
'notes':
'This is a simple example of a transformer. It takes data and converts it to JSON format.',
'author':
'Nova',
'implementation':
'import json\ndef to_json(data):\n\treturn json.dumps(data)',
},
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class Logger:
def __init__(self, target=None, log_file=None):
self.log_file = log_file
self.log = open(self.log_file, 'w+')
self.log.close()

def write(self, message):
self.log = open(self.log_file, 'a')
self.log.write(message)
self.log.close()

def read(self):
self.log = open(self.log_file, 'r')
return self.log.read()

def create(self):
self.log = open(self.log_file, 'w+')
self.log.close()

def __str__(self):
return self.read()

def __repr__(self):
return self.read()
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import inspect
from Utils import return_input_as_string

class Debugger:
def __init__(self, instance):
self.name = instance.__class__.__name__
self.instance = instance
self.stringify = return_input_as_string

def say(self, message):
print(f"{self.name}: {message}")

def return_func_name(self, func):
# func_name = func.__name__
return(f"{func.__name__}")
Loading