Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
2a5e4a0
zoom fixes
alextitonis May 14, 2022
3bd67db
updates on voice
alextitonis May 15, 2022
4d24ba7
Merge branch 'main' into zoom--fixes
alextitonis May 16, 2022
2a9e394
implemented zoom voice fetch and voice return handlers
alextitonis May 16, 2022
21dd24c
Updated the zoom client
mayur-jp May 30, 2022
e0b1929
updates
alextitonis Jun 2, 2022
56ba300
fixed speech to text
alextitonis Jun 6, 2022
14cdc86
Update zoom.ts
alextitonis Jun 9, 2022
0b1b669
Update zoom.ts
alextitonis Jun 9, 2022
fa1b65b
fixed window open issue
rakeshghasadiya Jun 13, 2022
618c4a0
fixed merge conflicts
rakeshghasadiya Jun 13, 2022
b897f43
implemented custom commands handler
alextitonis Jun 13, 2022
0650cdf
Merge branch 'main' of https://github.com/TheNexusCity/thoth into zoo…
mayur-jp Jun 14, 2022
85f3569
npm i
miteshodaan Jun 14, 2022
ea7f886
Merge branch 'main' of https://github.com/TheNexusCity/thoth into main
miteshodaan Jun 14, 2022
be3e886
Updated zoom client
mayur-jp Jun 15, 2022
985a8d1
implemented slack
alextitonis Jun 15, 2022
08c1f0b
Merge branch 'main' into windows
alextitonis Jun 15, 2022
e506176
Merge pull request #136 from TheNexusCity/windows
alextitonis Jun 15, 2022
4e27bb5
Merge branch 'main' into zoom--fixes
alextitonis Jun 15, 2022
0796528
Merge pull request #141 from TheNexusCity/zoom--fixes
alextitonis Jun 15, 2022
16b9254
added deployment steps
rakeshghasadiya Jun 15, 2022
db13606
added deployment steps
rakeshghasadiya Jun 15, 2022
c3d3ac3
added docker install step
rakeshghasadiya Jun 15, 2022
28a6cb5
added validation before adding an event
alextitonis Jun 15, 2022
ebe1924
Updated the run scripts
mayur-jp Jun 15, 2022
36c1f11
Merge branch 'main' of https://github.com/TheNexusCity/thoth into iss…
mayur-jp Jun 15, 2022
aea1d9b
Merge pull request #168 from TheNexusCity/issue-135
alextitonis Jun 15, 2022
b769eda
Merge pull request #143 from TheNexusCity/deployment_steps
alextitonis Jun 15, 2022
9b0d8c6
change render method fo React 18
miteshodaan Jun 15, 2022
97fdabe
change render method fo React 18
miteshodaan Jun 15, 2022
d83c7e6
Merge pull request #169 from TheNexusCity/react-upgrade
alextitonis Jun 16, 2022
aea1ca1
Added Greetings Manager
mayur-jp Jun 16, 2022
923198f
Merge branch 'main' of https://github.com/TheNexusCity/thoth into gre…
mayur-jp Jun 16, 2022
9af9ca2
Updated Greetings Manager and added reducer for Greetings
mayur-jp Jun 16, 2022
fbcf19e
implemented message reaction handler for discord & slack
alextitonis Jun 16, 2022
d6ea6d7
Merge branch 'main' of https://github.com/TheNexusCity/thoth into gre…
mayur-jp Jun 17, 2022
06b46cd
Updated models and added handlers to send greeting in Discord
mayur-jp Jun 17, 2022
da53e63
implemented wysiwyg editor
alextitonis Jun 18, 2022
d699ed8
Merge branch 'main' of https://github.com/TheNexusCity/thoth into gre…
mayur-jp Jun 20, 2022
feda40e
Added the handlers to send greetings in Slack
mayur-jp Jun 20, 2022
89a08ef
cleaned code
alextitonis Jun 20, 2022
b6be2e9
Added spell handler for updating user status in Discord
mayur-jp Jun 21, 2022
31e055c
implemented Entity loop, fixed issues, implemented RSS Getter and mas…
alextitonis Jun 21, 2022
4020bc0
Merge branch 'main' into greetings-manager
alextitonis Jun 21, 2022
3f88865
Merge pull request #172 from TheNexusCity/greetings-manager
alextitonis Jun 21, 2022
16f9248
Merge branch 'main' of https://github.com/TheNexusCity/thoth into spe…
mayur-jp Jun 21, 2022
f19b8b8
Added spell handlers for Discord and fixed userUpdateSpellHandler
mayur-jp Jun 21, 2022
92e21e6
Add spell exists endpoint
parzival418 Jun 21, 2022
12d55f2
Remove space
parzival418 Jun 21, 2022
7d7844f
Merge pull request #175 from TheNexusCity/spell-exists-endpoint
parzival418 Jun 22, 2022
f4106cd
Fixed update entity notification bug
mayur-jp Jun 22, 2022
cad1490
implemented discord -> slack echo
alextitonis Jun 22, 2022
d0c499a
Merge branch 'main' into spell-handlers
alextitonis Jun 22, 2022
47faee8
Merge pull request #177 from TheNexusCity/spell-handlers
alextitonis Jun 22, 2022
50e7e49
Merge branch 'main' into issue-173
alextitonis Jun 22, 2022
e2c9172
Merge pull request #176 from TheNexusCity/issue-173
alextitonis Jun 22, 2022
9f3fa79
fixed issues with greetings, fixed discord -> slack echo
alextitonis Jun 22, 2022
07cf902
Update README.md
alextitonis Jun 22, 2022
31c8964
Fix spell saving
parzival418 Jun 22, 2022
8fa804a
Fix plug provider
parzival418 Jun 23, 2022
15c1b68
Add docs for agent structure
parzival418 Jun 23, 2022
ac4b669
Merge remote-tracking branch 'nexus/main' into wiki-agents
parzival418 Jun 23, 2022
d1d5a79
Update agent structure docs.
parzival418 Jun 23, 2022
d36129a
Add local state slice
parzival418 Jun 24, 2022
767e289
Hook up local state slice
parzival418 Jun 24, 2022
c805595
Updates to local state slice
parzival418 Jun 24, 2022
c8810f8
Add https to launch json
parzival418 Jun 24, 2022
c1fff41
Turn off no unused vars in ts config
parzival418 Jun 24, 2022
bb9dd67
Add in dropdown object editor for additional input data
parzival418 Jun 24, 2022
65e9c33
Finish cast component
parzival418 Jun 26, 2022
fad3d49
Add cast component
parzival418 Jun 26, 2022
e68c794
Add color for agent socket
parzival418 Jun 26, 2022
36d80ee
disable spell checking
parzival418 Jun 26, 2022
9c64394
Rename entities folder to agents
parzival418 Jun 26, 2022
cea42b2
Add agent to types
parzival418 Jun 26, 2022
01053c1
Refactor to use agent socket
parzival418 Jun 27, 2022
5421201
Fix cast component
parzival418 Jun 27, 2022
62b55fc
Add generalized destructure component
parzival418 Jun 27, 2022
02c8fdf
Delete unused npmr rc files
parzival418 Jun 28, 2022
9c37530
Fix startup script
parzival418 Jun 28, 2022
3930a89
Update start script
parzival418 Jun 28, 2022
7b1db63
Update appspec
parzival418 Jun 28, 2022
f4adde8
Switch user in start script
parzival418 Jun 28, 2022
3a7f50e
More deploy process updates
parzival418 Jun 28, 2022
669f45a
Try out changes to app spec
parzival418 Jun 28, 2022
3cd09b1
Add back in yarn install
parzival418 Jun 28, 2022
805f497
Add nvm stuff to scripts
parzival418 Jun 28, 2022
c674a64
Switch to root user and add pm2 restart back in
parzival418 Jun 28, 2022
733d09e
Update react types to 17
parzival418 Jun 28, 2022
07b9fa0
Add pm2 thoth start to script
parzival418 Jun 28, 2022
fd9f892
switch back to ec2 user
parzival418 Jun 28, 2022
88a4aab
Switch appspec to ubuntu
parzival418 Jun 28, 2022
c291528
Remove unused nvm stuff
parzival418 Jun 28, 2022
59091a2
Make root access in app spec
parzival418 Jun 28, 2022
118541b
Uopdate docker compose commands
parzival418 Jun 28, 2022
ba96901
Add super reality thoth to allowed hosts
parzival418 Jun 28, 2022
49fbd89
Disable host check
parzival418 Jun 28, 2022
5a00774
Remove pm2 thoth start from application script
parzival418 Jun 29, 2022
9908832
Allow all hosts
parzival418 Jun 29, 2022
0d1cee3
Fix completion interface for generator
parzival418 Jun 29, 2022
084cd79
Get new wikipedia components and routes going
parzival418 Jul 1, 2022
1308a85
Change data access from wiki summary call in component
parzival418 Jul 1, 2022
7cbb244
Fix type error
parzival418 Jul 2, 2022
59b9edc
Add spread component
parzival418 Jul 2, 2022
cb794d7
Trim prompt on completion to ensure to whitespace messes with generation
parzival418 Jul 2, 2022
c4d44bd
Speed up client webpack dev build with DLL plugin
parzival418 Jul 2, 2022
1a3c041
Rename spread component to merge
parzival418 Jul 2, 2022
1ff2837
Update core webpack bundle analyzer
parzival418 Jul 4, 2022
bdb4d3b
Add dll reference build to core
parzival418 Jul 4, 2022
57f2589
Use agent in event store
parzival418 Jul 4, 2022
abb9b84
Fix casting component
parzival418 Jul 4, 2022
ddd7c33
Fix merge
parzival418 Jul 4, 2022
604ea1a
Refresh event table on event store
parzival418 Jul 5, 2022
23ee57e
Remove a bunch of windows from default layout for now
parzival418 Jul 5, 2022
e51cf1e
Pass props into event manager window
parzival418 Jul 5, 2022
fd778a6
Add or gate
parzival418 Jul 5, 2022
1273a91
Disable diplay from event recall and generator
parzival418 Jul 5, 2022
4f51964
Remove display from code component
parzival418 Jul 6, 2022
cc661a5
Fix socket adding witgh multiple ignored sockets
parzival418 Jul 8, 2022
c941b41
Working on getting agent running in runspell on the server.
parzival418 Jul 9, 2022
d226e6e
Add log component
parzival418 Jul 11, 2022
8c29e3b
Convert event recall, store, and wiki components to use interface.
parzival418 Jul 11, 2022
03a0647
Update app start for SR deployment
parzival418 Jul 11, 2022
91f8ef6
Fix path to move certs to
parzival418 Jul 11, 2022
b4838a7
Copy env files back into packages
parzival418 Jul 19, 2022
3e30c66
Fix components and completion
parzival418 Jul 19, 2022
3144c72
Fix input default value
parzival418 Jul 20, 2022
a043361
Fixes to completion
parzival418 Jul 21, 2022
b781ace
Merge branch 'main' into wiki-agents
alextitonis Aug 8, 2022
93d1eb0
Update weaviateClient.ts
alextitonis Aug 8, 2022
76dd165
Update events.ts
alextitonis Aug 8, 2022
6f12f37
fixed errors
alextitonis Aug 8, 2022
b1b4f51
fixed errors & discord
alextitonis Aug 8, 2022
400769e
added back vite for client
alextitonis Aug 8, 2022
8b7f603
fixed an issue that was not closing ent web server, added port checke…
alextitonis Aug 9, 2022
8fad146
fixed errors, added on exit event
alextitonis Aug 10, 2022
8538f72
Fix rete reference to atlas foundation
parzival418 Aug 12, 2022
c2feb77
Remove unused sodium dependency
parzival418 Aug 15, 2022
f21213b
Fix typescript issues
parzival418 Aug 15, 2022
295e388
Switch getEvent to send proper json
parzival418 Aug 15, 2022
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
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:3003",
"sourceMap": true,
"url": "https://localhost:3003",
// "sourceMap": true,
"webRoot": "${workspaceFolder}/client",
"trace": true,
"sourceMapPathOverrides": {
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"prettier.configPath": "./.prettierrc.json",
"eslint.workingDirectories": ["./client", "./core", "./server"],
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
"cSpell.enabled": false
"cSpell.enabled": false,
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
}
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Thoth is a multishot system builder. It leverages a visual coding style interfac
You will need **yarn or npm** and **Docker** installed, along with **Node.js 16 or higher**. We use Docker to run a local Postgres database. You can skip the docker and install postgres directly, but you are almost always better off just using Docker.
For **Linux** and **MAC** users, **sleep** and **concurently** commands must be installed in the machine.

Install xvfb, chromium and ffmpeg

First, clone and set up Thoth

```
Expand Down
2 changes: 1 addition & 1 deletion appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ hooks:
ApplicationStart:
- location: scripts/application_start.sh
timeout: 300
runas: root
runas: root
41 changes: 41 additions & 0 deletions deployment_steps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Thoth Deployment steps

1. Setup AWS CICD (https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines.html)

2. Login aws EC2 server using ssh

3. Install node js (https://github.com/nodesource/distributions#debinstall)
4. Install pm2 (https://pm2.keymetrics.io/) and run pm2 startup command

5. Install docker (https://docs.docker.com/engine/install)

6. Generate SSL certificate -` sudo certbot certonly --standalone --agree-tos --preferred-challenges http -d <domainName>`

sudo certbot certonly --manual --agree-tos --preferred-challenges dns -d superreality.com,thoth.superreality.com

7. Go to the project root path
8. Copy certificates

- Copy generated certificates into client dir. (tooth/client/certs)
- `sudo cp /etc/letsencrypt/live/superreality.com/privkey.pem /opt/thoth/packages/client/certs/key.pem`
- `sudo cp /etc/letsencrypt/live/superreality.com/cert.pem /opt/thoth/packages/client/certs/cert.pem`
- Copy generated certificates into server dir. (tooth/server/certs)
- `sudo cp /etc/letsencrypt/live/superreality.com/privkey.pem /opt/thoth/packages/server/certs/key.pem`
- `sudo cp /etc/letsencrypt/live/superreality.com/cert.pem /opt/thoth/packages/server/certs/cert.pem`

9. Open client .env file (vim client/.env).

- Change following env params REACT_APP_LAPI_ROOT_URL, REACT_APP_API_ROOT_URL, REACT_APP_API_ROOT_URL_PROD, REACT_APP_CORS_URL, REACT_APP_API_URL,REACT_APP_SEARCH_FILE_URL

10. Open core .env file (vim client/.env).

- Change following env params REACT_APP_API_ROOT_URL, API_URL

11. Open server .env file (vim client/.env).

- Change following .env params API_URL, PGUSER, PGHOST, PGPASSWORD, PGDATABASE, GOOGLE_APPLICATION_CREDENTIALS, WITAI_KEY, UBER_DUCK_KEY, UBER_DUCK_SECRET_KEY, OPENAI_API_KEY, HF_API_KEY
Note: In GOOGLE_APPLICATION_CREDENTIALS set path of credential json file

12. Run following commands
- `pm2 --name thoth start "yarn run dev"`
- `pm2 save`
4 changes: 4 additions & 0 deletions docs/docs/developers/agents/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Agents",
"position": 4
}
50 changes: 50 additions & 0 deletions docs/docs/developers/agents/agentStructure.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: Structure of an Agent
description: What is an Agent and how is it structured
hide_table_of_contents: false
sidebar_position: 1
---

# Agent Architecture of an Agent

## Data Structure

speaker -- key of who is speaking, probably discord id of person chatting with agent
agent -- key of this particular agent receiving, since each agent can be different, probably supplied from agent settings (depends on connector)
client -- type of client -- discord, xrengine, etc
channel -- where it is received, i.e. discord channel or xrengine room (at least ideally, discord does this but other connectors might need work)
entity -- information about this running entity instance (entity number, etc)
roomInfo -- info from the world, this is how we do text gen from worlds ideally
output -- actual information received

### Input

This is the input which the agent is receiving. Usually a snippet of conversation, but could be anything that is being processed by the particular agent.

### Speaker

The person interacting with or engaging with the Agent. This helps to store associated data between the speaker and the agent. Could be a user ID, a user name, etc.

### Agent

Key of this particular agent receiving the input, since each agent can be different, probably supplied from agent settings (depends on connector). Agent is and ID.

### Client

Type of client that is interacting with the Agent (discord, XR Engine, twitter, web, etc)

### Channel Id

Where it is received from, i.e. discord channel or xrengine room (at least ideally, discord does this but other connectors might need work)

### Entity

Information about this running entity instance (entity number, etc)

### roomInfo

Info from the world, this is how we do text gen from worlds ideally

### Output (output socket)

This is the original input that was received.
Loading