forked from Significant-Gravitas/AutoGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds twitter handles to rendered output.
- Loading branch information
1 parent
2df25f6
commit 9ccb225
Showing
4 changed files
with
69 additions
and
40 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,61 @@ | ||
const jsonData = { | ||
"command": | ||
{ | ||
"name": "Commit to Long Term Memory", | ||
"arguments": | ||
{ | ||
"string": "1. AI-based Photo Editing Apps\n2. AI-Based Writing Tool\n3. Advertising Software\n4. AI Marketing Agency\n5. Recruitment Business App\n6. AI-powered Cybersecurity App\n7. Healthcare Startup\n8. Medical Equipment Business" | ||
"command": { | ||
"name": "Google Search", | ||
"arguments": { | ||
"search": "simple and profitable online business ideas" | ||
} | ||
}, | ||
"Thoughts": | ||
{ | ||
"text": "Storing the ranking of potential AI-based businesses in Long Term Memory", | ||
"reasoning": "To remember the ranked list and use it to guide the decision-making process in choosing the most suitable business opportunity", | ||
"current long-term plan": "- Research potential businesses\n- Choose a suitable business\n- Develop and manage the business autonomously", | ||
"critisism": "None at the moment" | ||
"thoughts": { | ||
"text": "I will search for simple and profitable online business ideas to begin my entrepreneurship journey.", | ||
"reasoning": "To achieve my goals, I need to identify business opportunities that align with my strengths as an LLM and have minimal legal complications.", | ||
"current long-term plan": "- Search for business ideas\n- Evaluate and select ideas\n- Develop and implement chosen business strategy\n- Continuously refine strategies based on market trends and performance metrics", | ||
"critisism": "I must ensure that the chosen business idea is both simple and legal, while also considering scalability and profitability." | ||
} | ||
}; | ||
|
||
function displayJsonData() { | ||
const jsonDisplay = document.getElementById('json-display'); | ||
let displayContent = ''; | ||
|
||
for (const key in jsonData) { | ||
displayContent += `<h2>${key}</h2><ul>`; | ||
const value = jsonData[key]; | ||
|
||
for (const subKey in value) { | ||
let subValue = value[subKey]; | ||
|
||
if (typeof subValue === 'string') { | ||
subValue = subValue.replace(/\n/g, '<br>'); | ||
} | ||
|
||
if (subKey === "arguments") { | ||
displayContent += `<li><strong>${subKey}:</strong><ul><li><div class="argument-box"><strong>string:</strong> ${value[subKey].string.replace(/\n/g, '<br>')}</div></li></ul></li>`; | ||
} else { | ||
displayContent += `<li><strong>${subKey}:</strong> ${subValue}</li>`; | ||
}; | ||
|
||
function displayJsonData() { | ||
const jsonDisplay = document.getElementById('json-display'); | ||
let displayContent = ''; | ||
|
||
for (const key in jsonData) { | ||
displayContent += `<h2>${key}:</h2><br><ul>`; | ||
const value = jsonData[key]; | ||
|
||
for (const subKey in value) { | ||
let subValue = value[subKey]; | ||
|
||
if (typeof subValue === 'string') { | ||
subValue = subValue.replace(/\n/g, '<br>'); | ||
} | ||
|
||
if (subKey === "arguments") { | ||
displayContent += `<li><strong>${subKey}:</strong><ul>`; | ||
|
||
for (const argumentKey in value[subKey]) { | ||
const argumentValue = value[subKey][argumentKey]; | ||
displayContent += `<li><div class="argument-box"><strong>${argumentKey}:</strong> ${argumentValue.replace(/\n/g, '<br>')}</div></li>`; | ||
} | ||
|
||
displayContent += '</ul></li>'; | ||
} else { | ||
displayContent += `<li><strong>${subKey}:</strong> ${subValue}</li>`; | ||
} | ||
} | ||
|
||
displayContent += '</ul>'; | ||
} | ||
|
||
displayContent += '</ul>'; | ||
|
||
jsonDisplay.innerHTML = ` | ||
<div class="json-display-content"> | ||
${displayContent} | ||
</div> | ||
<div class="twitter-handles"> | ||
<img src="en_gpt.jpg" alt="En_GPT" class="twitter-profile-pic"> | ||
<a href="https://twitter.com/En_GPT"> @En_GPT</a> | ||
<img src="SigGravitas.jpg" alt="SigGravitas" class="twitter-profile-pic"> | ||
<a href="https://twitter.com/SigGravitas">@SigGravitas</a> | ||
</div> | ||
`; | ||
} | ||
|
||
jsonDisplay.innerHTML = displayContent; | ||
} | ||
|
||
displayJsonData(); | ||
|
||
displayJsonData(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters