├── .gitignore ├── ELIZA.project.json ├── IntentStories.md ├── InterestStories.md ├── LICENSE ├── README.md ├── SkillStories.md ├── package.json ├── scripts ├── pack-spells.js └── unpack-spells.js └── spells ├── ELIZA.json ├── ELIZA_INPUT_ChatHandler.json ├── ELIZA_INPUT_FeedHandler.json ├── ELIZA_INPUT_LoopHandler.json ├── ELIZA_INPUT_TaskHandler.json ├── ELIZA_INTENT_analysis_off.json ├── ELIZA_INTENT_analysis_on.json ├── ELIZA_INTENT_conversation.json ├── ELIZA_INTENT_greeting.json ├── ELIZA_INTENT_ignore.json ├── ELIZA_INTENT_joinvoice.json ├── ELIZA_INTENT_knowledge.json ├── ELIZA_INTENT_leavevoice.json ├── ELIZA_INTENT_task.json ├── ELIZA_MODULE_AddDocument.json ├── ELIZA_MODULE_Analysis.json ├── ELIZA_MODULE_CheckEmbedding.json ├── ELIZA_MODULE_DocumentRelationship.json ├── ELIZA_MODULE_FindIntent.json ├── ELIZA_MODULE_FindInterest.json ├── ELIZA_MODULE_GetAnalysisMode.json ├── ELIZA_MODULE_Task_FindSkill.json ├── ELIZA_MODULE_Task_Reasoning.json ├── ELIZA_MODULE_Task_Reflection.json ├── ELIZA_SKILL_cancel.json ├── ELIZA_SKILL_complete.json ├── ELIZA_SKILL_plan.json ├── ELIZA_SKILL_respond.json ├── FindFirstDocument.json └── FindFirstDocumentName.json /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /IntentStories.md: -------------------------------------------------------------------------------- 1 | ## INTENT STORIES 2 | 3 | ### Greeting 4 | /addintent greeting hey eliza 5 | 6 | ### Knowledge 7 | /addintent knowledge What is Magick? 8 | 9 | ### Conversation 10 | /addintent conversation i'm trying to figure out how to use embeddings 11 | 12 | ### Ignore 13 | /addintent ignore shutup eliza 14 | 15 | ### Task 16 | /addintent task hey can you check my email for me? -------------------------------------------------------------------------------- /InterestStories.md: -------------------------------------------------------------------------------- 1 | ## INTEREST STORIES 2 | 3 | ### Ignore 4 | /addinterest ignore We're still working on her, you may encounter some bugs, sorry. 5 | 6 | ### Respond 7 | /addskill respond Hey eliza! 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2023 ONEIROCOM, INC. 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Project Eliza 2 | Eliza is an open source autonomous agent built in the open. Anyone can run Eliza on their own computer, and connect it to Discord, Slack, Google Meet, Zoom, Reddit, Twitter, Text Message, and even Voice. Anyone can add new skills to Eliza and share them with the community. 3 | 4 | Please file all bugs under https://github.com/elizathecoder/ProjectEliza/issues 5 | 6 | # Packing spells into a project 7 | Copy your spells into the /spells folder and run `npm run pack` to pack them into a project. 8 | All spells in the /spells folder will get packed into ELIZA.project.json, and any spells that were in ELIZA.project.json will be overwritten 9 | 10 | # Unpacking spells from a project 11 | Run `npm run unpack` to unpack spells from a project. 12 | All spells in the /spells folder will be overwritten by the spells in ELIZA.project.json 13 | 14 | # Made With Magick! 15 | 16 | Eliza is built on Magick! The latest version of Magick is here: https://github.com/Oneirocom/MagickML 17 | 18 | To get started with Magick from the very basics, check out the Magick Academy series: https://www.youtube.com/playlist?list=PLlHAC2lyWAzxtPANXyhbQfUtGLdvM0tHm 19 | 20 | ## Old Work 21 | 22 | The current version of Eliza uses the latest version of Magick. Older tutorials and versions are still relevant and cover many important concepts, but may not be up to date with the latest versions of the nodes and editor. 23 | 24 | A video on how to make an agent, set everything up and get started is here: 25 | https://www.youtube.com/watch?v=_4t9DK_MK-c 26 | 27 | A playlist of community calls covering the entire development of Eliza is here: https://www.youtube.com/playlist?list=PLx5pnFXdPTRxn7mS3bz7wzFZ0QYt8Loh2 28 | 29 | ## Member of M3 Metaverse Makers https://3d.m3org.com/ 30 | ![image](https://user-images.githubusercontent.com/64185677/173713393-45a998e7-e8f1-4a31-afd9-b2d4f8fa3af9.png) 31 | -------------------------------------------------------------------------------- /SkillStories.md: -------------------------------------------------------------------------------- 1 | ## SKILL STORIES 2 | 3 | ### Complete 4 | /addskill complete I have completed the task successfully. 5 | 6 | ### Cancel 7 | /addskill cancel I am not able to complete the task, so I should cancel it. 8 | 9 | ### Respond 10 | /addskill respond I should send a message to the user and let them know how things are going. 11 | 12 | ### Plan 13 | /addskill plan I should write a detailed plan of what I want to do and the steps necessary to complete the task. -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "spells", 3 | "version": "1.0.0", 4 | "description": "spells", 5 | "main": "index.js", 6 | "scripts": { 7 | "pack": "node scripts/pack-spells.js", 8 | "unpack": "node scripts/unpack-spells.js" 9 | }, 10 | "author": "Vladimir", 11 | "license": "ISC", 12 | "dependencies": { 13 | } 14 | } -------------------------------------------------------------------------------- /scripts/pack-spells.js: -------------------------------------------------------------------------------- 1 | // pack the spells from the /spells folder into the ELIZA.project.json file 2 | const fs = require('fs'); 3 | 4 | function packSpells() { 5 | const spells = []; 6 | 7 | const spellFiles = fs.readdirSync('./spells'); 8 | spellFiles.forEach(spellFile => { 9 | const spell = require(`../spells/${spellFile}`); 10 | spells.push(spell); 11 | } 12 | ); 13 | 14 | const project = require('../ELIZA.project.json'); 15 | project.spells = spells; 16 | 17 | fs.writeFile('./ELIZA.project.json', JSON.stringify(project, null, 2), err => { 18 | if (err) throw err; 19 | } 20 | ); 21 | 22 | console.log('Spells packed!'); 23 | } 24 | 25 | packSpells(); -------------------------------------------------------------------------------- /scripts/unpack-spells.js: -------------------------------------------------------------------------------- 1 | // unpacks spells from the .project.json into the spells folder 2 | 3 | const fs = require('fs'); 4 | function unpackSpells() { 5 | const spells = require('../ELIZA.project.json').spells; 6 | spells.forEach(spell => { 7 | // format the json file 8 | fs.writeFile(`./spells/${spell.name}.json`, JSON.stringify(spell 9 | , null, 2 10 | ), err => { 11 | if (err) throw err; 12 | }); 13 | }); 14 | } 15 | 16 | unpackSpells(); -------------------------------------------------------------------------------- /spells/ELIZA_INPUT_LoopHandler.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "e7fad5a8-e257-4b1f-b99a-fb6b206af33a", 3 | "name": "ELIZA_INPUT_LoopHandler", 4 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 5 | "hash": "cfe86a88ea330ed96ba8aaac9fd46242", 6 | "createdAt": "1686210970868", 7 | "updatedAt": null, 8 | "graph": { 9 | "id": "demo@0.1.0", 10 | "nodes": { 11 | "232": { 12 | "id": 232, 13 | "data": { 14 | "name": "Input - Default", 15 | "text": { 16 | "id": "2eb64348-adee-4118-bcca-19697ca3a16a", 17 | "inputs": {}, 18 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 19 | "spellName": "Starter", 20 | "publicVariables": "[]" 21 | }, 22 | "isInput": true, 23 | "outputs": [], 24 | "success": false, 25 | "inputType": "Default", 26 | "socketKey": "9d61118c-3c5a-4379-9dae-41965e56207f", 27 | "useDefault": false, 28 | "dataControls": { 29 | "inputType": { 30 | "expanded": true 31 | }, 32 | "useDefault": { 33 | "expanded": true 34 | }, 35 | "defaultValue": { 36 | "expanded": true 37 | } 38 | }, 39 | "defaultValue": "Hello world", 40 | "playtestToggle": { 41 | "outputs": [], 42 | "receivePlaytest": false 43 | } 44 | }, 45 | "name": "Input", 46 | "inputs": {}, 47 | "outputs": { 48 | "output": { 49 | "connections": [ 50 | { 51 | "data": { 52 | "hello": "hello" 53 | }, 54 | "node": 494, 55 | "input": "event" 56 | } 57 | ] 58 | }, 59 | "trigger": { 60 | "connections": [ 61 | { 62 | "data": { 63 | "hello": "hello" 64 | }, 65 | "node": 494, 66 | "input": "trigger" 67 | } 68 | ] 69 | } 70 | }, 71 | "position": [ 72 | -619.70703125, 73 | -3.83203125 74 | ] 75 | }, 76 | "233": { 77 | "id": 233, 78 | "data": { 79 | "name": "Output", 80 | "success": false, 81 | "isOutput": true, 82 | "socketKey": "0f17a35e-1380-428b-bc87-4a38d207fefc", 83 | "dataControls": { 84 | "name": { 85 | "expanded": true 86 | } 87 | } 88 | }, 89 | "name": "Output", 90 | "inputs": { 91 | "event": { 92 | "connections": [] 93 | }, 94 | "input": { 95 | "connections": [ 96 | { 97 | "data": { 98 | "hello": "hello" 99 | }, 100 | "node": 493, 101 | "output": "output" 102 | } 103 | ] 104 | }, 105 | "trigger": { 106 | "connections": [ 107 | { 108 | "data": { 109 | "hello": "hello" 110 | }, 111 | "node": 493, 112 | "output": "trigger" 113 | } 114 | ] 115 | } 116 | }, 117 | "outputs": { 118 | "output": { 119 | "connections": [] 120 | }, 121 | "trigger": { 122 | "connections": [] 123 | } 124 | }, 125 | "position": [ 126 | 200, 127 | 0 128 | ] 129 | }, 130 | "493": { 131 | "id": 493, 132 | "data": { 133 | "success": false 134 | }, 135 | "name": "Echo", 136 | "inputs": { 137 | "string": { 138 | "connections": [ 139 | { 140 | "data": { 141 | "hello": "hello" 142 | }, 143 | "node": 494, 144 | "output": "content" 145 | } 146 | ] 147 | }, 148 | "trigger": { 149 | "connections": [ 150 | { 151 | "data": { 152 | "hello": "hello" 153 | }, 154 | "node": 494, 155 | "output": "trigger" 156 | } 157 | ] 158 | } 159 | }, 160 | "outputs": { 161 | "output": { 162 | "connections": [ 163 | { 164 | "data": { 165 | "hello": "hello" 166 | }, 167 | "node": 233, 168 | "input": "input" 169 | } 170 | ] 171 | }, 172 | "trigger": { 173 | "connections": [ 174 | { 175 | "data": { 176 | "hello": "hello" 177 | }, 178 | "node": 233, 179 | "input": "trigger" 180 | } 181 | ] 182 | } 183 | }, 184 | "position": [ 185 | -67.12109375, 186 | 1.0078125 187 | ] 188 | }, 189 | "494": { 190 | "id": 494, 191 | "data": { 192 | "success": false, 193 | "socketKey": "bbd9c07c-7bcc-454a-b5fe-cc6fd63f6a94" 194 | }, 195 | "name": "Event Destructure", 196 | "inputs": { 197 | "event": { 198 | "connections": [ 199 | { 200 | "data": { 201 | "hello": "hello" 202 | }, 203 | "node": 232, 204 | "output": "output" 205 | } 206 | ] 207 | }, 208 | "trigger": { 209 | "connections": [ 210 | { 211 | "data": { 212 | "hello": "hello" 213 | }, 214 | "node": 232, 215 | "output": "trigger" 216 | } 217 | ] 218 | } 219 | }, 220 | "outputs": { 221 | "client": { 222 | "connections": [] 223 | }, 224 | "sender": { 225 | "connections": [] 226 | }, 227 | "agentId": { 228 | "connections": [] 229 | }, 230 | "channel": { 231 | "connections": [] 232 | }, 233 | "content": { 234 | "connections": [ 235 | { 236 | "data": { 237 | "hello": "hello" 238 | }, 239 | "node": 493, 240 | "input": "string" 241 | } 242 | ] 243 | }, 244 | "trigger": { 245 | "connections": [ 246 | { 247 | "data": { 248 | "hello": "hello" 249 | }, 250 | "node": 493, 251 | "input": "trigger" 252 | } 253 | ] 254 | }, 255 | "entities": { 256 | "connections": [] 257 | }, 258 | "observer": { 259 | "connections": [] 260 | }, 261 | "projectId": { 262 | "connections": [] 263 | }, 264 | "channelType": { 265 | "connections": [] 266 | } 267 | }, 268 | "position": [ 269 | -338.375, 270 | -0.98828125 271 | ] 272 | } 273 | }, 274 | "comments": [] 275 | } 276 | } -------------------------------------------------------------------------------- /spells/ELIZA_INTENT_conversation.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "7529dba4-4e27-4407-870e-0dc27a81c6d6", 3 | "name": "ELIZA_INTENT_conversation", 4 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 5 | "hash": "b9281f85833bcfff248176276d312996", 6 | "createdAt": "1686210970868", 7 | "updatedAt": null, 8 | "graph": { 9 | "id": "demo@0.1.0", 10 | "nodes": { 11 | "232": { 12 | "id": 232, 13 | "data": { 14 | "name": "Input - Default", 15 | "isInput": true, 16 | "useData": true, 17 | "inputName": "Default", 18 | "socketKey": "36788fc1-298a-442a-911e-a79e72e7c538" 19 | }, 20 | "name": "Input", 21 | "inputs": {}, 22 | "outputs": { 23 | "output": { 24 | "connections": [ 25 | { 26 | "data": { 27 | "hello": "hello" 28 | }, 29 | "node": 494, 30 | "input": "event" 31 | }, 32 | { 33 | "data": { 34 | "hello": "hello" 35 | }, 36 | "node": 3671, 37 | "input": "event" 38 | }, 39 | { 40 | "data": { 41 | "hello": "hello" 42 | }, 43 | "node": 3696, 44 | "input": "event" 45 | }, 46 | { 47 | "data": { 48 | "hello": "hello" 49 | }, 50 | "node": 233, 51 | "input": "event" 52 | } 53 | ] 54 | }, 55 | "trigger": { 56 | "connections": [ 57 | { 58 | "data": { 59 | "hello": "hello" 60 | }, 61 | "node": 494, 62 | "input": "trigger" 63 | } 64 | ] 65 | } 66 | }, 67 | "position": [ 68 | -619.70703125, 69 | -3.83203125 70 | ] 71 | }, 72 | "233": { 73 | "id": 233, 74 | "data": { 75 | "name": "Output - Default", 76 | "isOutput": true, 77 | "socketKey": "a70b66de-cb10-4a97-a89d-23cf4a63696b", 78 | "sendToPlaytest": true 79 | }, 80 | "name": "Output", 81 | "inputs": { 82 | "event": { 83 | "connections": [ 84 | { 85 | "data": { 86 | "hello": "hello" 87 | }, 88 | "node": 232, 89 | "output": "output" 90 | } 91 | ] 92 | }, 93 | "input": { 94 | "connections": [ 95 | { 96 | "data": { 97 | "hello": "hello" 98 | }, 99 | "node": 3670, 100 | "output": "result" 101 | } 102 | ] 103 | }, 104 | "trigger": { 105 | "connections": [ 106 | { 107 | "data": { 108 | "hello": "hello" 109 | }, 110 | "node": 3670, 111 | "output": "trigger" 112 | } 113 | ] 114 | } 115 | }, 116 | "outputs": { 117 | "output": { 118 | "connections": [] 119 | }, 120 | "trigger": { 121 | "connections": [] 122 | } 123 | }, 124 | "position": [ 125 | 944, 126 | 64 127 | ] 128 | }, 129 | "494": { 130 | "id": 494, 131 | "data": { 132 | "socketKey": "392f7afd-74ce-46de-b412-c42445b3773a" 133 | }, 134 | "name": "Event Destructure", 135 | "inputs": { 136 | "event": { 137 | "connections": [ 138 | { 139 | "data": { 140 | "hello": "hello" 141 | }, 142 | "node": 232, 143 | "output": "output" 144 | } 145 | ] 146 | }, 147 | "trigger": { 148 | "connections": [ 149 | { 150 | "data": { 151 | "hello": "hello" 152 | }, 153 | "node": 232, 154 | "output": "trigger" 155 | } 156 | ] 157 | } 158 | }, 159 | "outputs": { 160 | "client": { 161 | "connections": [] 162 | }, 163 | "sender": { 164 | "connections": [] 165 | }, 166 | "agentId": { 167 | "connections": [] 168 | }, 169 | "channel": { 170 | "connections": [] 171 | }, 172 | "content": { 173 | "connections": [ 174 | { 175 | "data": { 176 | "hello": "hello" 177 | }, 178 | "node": 3670, 179 | "input": "input" 180 | }, 181 | { 182 | "data": { 183 | "hello": "hello" 184 | }, 185 | "node": 3670, 186 | "input": "system" 187 | } 188 | ] 189 | }, 190 | "rawData": { 191 | "connections": [] 192 | }, 193 | "trigger": { 194 | "connections": [ 195 | { 196 | "data": { 197 | "hello": "hello" 198 | }, 199 | "node": 3671, 200 | "input": "trigger" 201 | } 202 | ] 203 | }, 204 | "entities": { 205 | "connections": [] 206 | }, 207 | "observer": { 208 | "connections": [] 209 | }, 210 | "connector": { 211 | "connections": [] 212 | }, 213 | "embedding": { 214 | "connections": [] 215 | }, 216 | "projectId": { 217 | "connections": [] 218 | }, 219 | "channelType": { 220 | "connections": [] 221 | } 222 | }, 223 | "position": [ 224 | -338.375, 225 | -0.98828125 226 | ] 227 | }, 228 | "3670": { 229 | "id": 3670, 230 | "data": { 231 | "model": "chat-bison-001", 232 | "top_k": 50, 233 | "top_p": 1, 234 | "temperature": 0.5, 235 | "stopSequences": "" 236 | }, 237 | "name": "Generate Text", 238 | "inputs": { 239 | "input": { 240 | "connections": [ 241 | { 242 | "data": { 243 | "hello": "hello" 244 | }, 245 | "node": 494, 246 | "output": "content" 247 | } 248 | ] 249 | }, 250 | "system": { 251 | "connections": [ 252 | { 253 | "data": { 254 | "hello": "hello" 255 | }, 256 | "node": 494, 257 | "output": "content" 258 | } 259 | ] 260 | }, 261 | "trigger": { 262 | "connections": [ 263 | { 264 | "data": { 265 | "hello": "hello" 266 | }, 267 | "node": 3671, 268 | "output": "trigger" 269 | } 270 | ] 271 | }, 272 | "examples": { 273 | "connections": [] 274 | }, 275 | "conversation": { 276 | "connections": [ 277 | { 278 | "data": { 279 | "hello": "hello" 280 | }, 281 | "node": 3671, 282 | "output": "events" 283 | } 284 | ] 285 | } 286 | }, 287 | "outputs": { 288 | "error": { 289 | "connections": [] 290 | }, 291 | "result": { 292 | "connections": [ 293 | { 294 | "data": { 295 | "hello": "hello" 296 | }, 297 | "node": 233, 298 | "input": "input" 299 | }, 300 | { 301 | "data": { 302 | "hello": "hello" 303 | }, 304 | "node": 3696, 305 | "input": "input" 306 | } 307 | ] 308 | }, 309 | "trigger": { 310 | "connections": [ 311 | { 312 | "data": { 313 | "hello": "hello" 314 | }, 315 | "node": 233, 316 | "input": "trigger" 317 | }, 318 | { 319 | "data": { 320 | "hello": "hello" 321 | }, 322 | "node": 3696, 323 | "input": "trigger" 324 | } 325 | ] 326 | } 327 | }, 328 | "position": [ 329 | 560, 330 | -16 331 | ] 332 | }, 333 | "3671": { 334 | "id": 3671, 335 | "data": { 336 | "name": "Get Conversation", 337 | "type": "conversation", 338 | "max_count": "6" 339 | }, 340 | "name": "Event Recall", 341 | "inputs": { 342 | "type": { 343 | "connections": [] 344 | }, 345 | "event": { 346 | "connections": [ 347 | { 348 | "data": { 349 | "hello": "hello" 350 | }, 351 | "node": 232, 352 | "output": "output" 353 | } 354 | ] 355 | }, 356 | "trigger": { 357 | "connections": [ 358 | { 359 | "data": { 360 | "hello": "hello" 361 | }, 362 | "node": 494, 363 | "output": "trigger" 364 | } 365 | ] 366 | }, 367 | "embedding": { 368 | "connections": [] 369 | } 370 | }, 371 | "outputs": { 372 | "events": { 373 | "connections": [ 374 | { 375 | "data": { 376 | "hello": "hello" 377 | }, 378 | "node": 3670, 379 | "input": "conversation" 380 | } 381 | ] 382 | }, 383 | "trigger": { 384 | "connections": [ 385 | { 386 | "data": { 387 | "hello": "hello" 388 | }, 389 | "node": 3670, 390 | "input": "trigger" 391 | } 392 | ] 393 | } 394 | }, 395 | "position": [ 396 | 112, 397 | -80 398 | ] 399 | }, 400 | "3696": { 401 | "id": 3696, 402 | "data": { 403 | "socketKey": "869c08e9-fba9-4792-88e8-c86e963209ca", 404 | "sendToPlaytest": true 405 | }, 406 | "name": "Respond", 407 | "inputs": { 408 | "event": { 409 | "connections": [ 410 | { 411 | "data": { 412 | "hello": "hello" 413 | }, 414 | "node": 232, 415 | "output": "output" 416 | } 417 | ] 418 | }, 419 | "input": { 420 | "connections": [ 421 | { 422 | "data": { 423 | "hello": "hello" 424 | }, 425 | "node": 3670, 426 | "output": "result" 427 | } 428 | ] 429 | }, 430 | "trigger": { 431 | "connections": [ 432 | { 433 | "data": { 434 | "hello": "hello" 435 | }, 436 | "node": 3670, 437 | "output": "trigger" 438 | } 439 | ] 440 | } 441 | }, 442 | "outputs": { 443 | "trigger": { 444 | "connections": [] 445 | } 446 | }, 447 | "position": [ 448 | 928, 449 | -288 450 | ] 451 | } 452 | }, 453 | "comments": [] 454 | } 455 | } -------------------------------------------------------------------------------- /spells/ELIZA_INTENT_greeting.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "439663d7-3274-4bd5-af7f-8d23566f5991", 3 | "name": "ELIZA_INTENT_greeting", 4 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 5 | "hash": "ab98f7f65e4481ac961f2831f359df16", 6 | "createdAt": "1686210970868", 7 | "updatedAt": "1686954014350", 8 | "graph": { 9 | "id": "demo@0.1.0", 10 | "nodes": { 11 | "232": { 12 | "id": 232, 13 | "data": { 14 | "name": "Input - Default", 15 | "isInput": true, 16 | "success": false, 17 | "useData": true, 18 | "inputName": "Default", 19 | "socketKey": "607e39a9-4728-433a-8497-8aad4c648615" 20 | }, 21 | "name": "Input", 22 | "inputs": {}, 23 | "outputs": { 24 | "output": { 25 | "connections": [ 26 | { 27 | "data": { 28 | "hello": "hello" 29 | }, 30 | "node": 494, 31 | "input": "event" 32 | }, 33 | { 34 | "data": { 35 | "hello": "hello" 36 | }, 37 | "node": 3671, 38 | "input": "event" 39 | }, 40 | { 41 | "data": { 42 | "hello": "hello" 43 | }, 44 | "node": 4548, 45 | "input": "event" 46 | } 47 | ] 48 | }, 49 | "trigger": { 50 | "connections": [ 51 | { 52 | "data": { 53 | "hello": "hello" 54 | }, 55 | "node": 494, 56 | "input": "trigger" 57 | } 58 | ] 59 | } 60 | }, 61 | "position": [ 62 | -640, 63 | 0 64 | ] 65 | }, 66 | "233": { 67 | "id": 233, 68 | "data": { 69 | "name": "Output - Default", 70 | "success": false, 71 | "isOutput": true, 72 | "socketKey": "7315dd07-a515-48b4-8397-d4e52ebf2dd0", 73 | "sendToPlaytest": true 74 | }, 75 | "name": "Output", 76 | "inputs": { 77 | "event": { 78 | "connections": [] 79 | }, 80 | "input": { 81 | "connections": [ 82 | { 83 | "data": { 84 | "hello": "hello" 85 | }, 86 | "node": 3670, 87 | "output": "result" 88 | } 89 | ] 90 | }, 91 | "trigger": { 92 | "connections": [ 93 | { 94 | "data": { 95 | "hello": "hello" 96 | }, 97 | "node": 3670, 98 | "output": "trigger" 99 | } 100 | ] 101 | } 102 | }, 103 | "outputs": { 104 | "output": { 105 | "connections": [] 106 | }, 107 | "trigger": { 108 | "connections": [] 109 | } 110 | }, 111 | "position": [ 112 | 1088, 113 | -32 114 | ] 115 | }, 116 | "494": { 117 | "id": 494, 118 | "data": { 119 | "success": false, 120 | "socketKey": "0b782831-43d6-43d5-bb38-74301dfef8e4" 121 | }, 122 | "name": "Event Destructure", 123 | "inputs": { 124 | "event": { 125 | "connections": [ 126 | { 127 | "data": { 128 | "hello": "hello" 129 | }, 130 | "node": 232, 131 | "output": "output" 132 | } 133 | ] 134 | }, 135 | "trigger": { 136 | "connections": [ 137 | { 138 | "data": { 139 | "hello": "hello" 140 | }, 141 | "node": 232, 142 | "output": "trigger" 143 | } 144 | ] 145 | } 146 | }, 147 | "outputs": { 148 | "client": { 149 | "connections": [] 150 | }, 151 | "sender": { 152 | "connections": [] 153 | }, 154 | "agentId": { 155 | "connections": [] 156 | }, 157 | "channel": { 158 | "connections": [] 159 | }, 160 | "content": { 161 | "connections": [ 162 | { 163 | "data": { 164 | "hello": "hello" 165 | }, 166 | "node": 3670, 167 | "input": "input" 168 | }, 169 | { 170 | "data": { 171 | "hello": "hello" 172 | }, 173 | "node": 3670, 174 | "input": "system" 175 | } 176 | ] 177 | }, 178 | "rawData": { 179 | "connections": [] 180 | }, 181 | "trigger": { 182 | "connections": [ 183 | { 184 | "data": { 185 | "hello": "hello" 186 | }, 187 | "node": 3671, 188 | "input": "trigger" 189 | } 190 | ] 191 | }, 192 | "entities": { 193 | "connections": [] 194 | }, 195 | "observer": { 196 | "connections": [] 197 | }, 198 | "connector": { 199 | "connections": [] 200 | }, 201 | "embedding": { 202 | "connections": [] 203 | }, 204 | "projectId": { 205 | "connections": [] 206 | }, 207 | "channelType": { 208 | "connections": [] 209 | } 210 | }, 211 | "position": [ 212 | -338.375, 213 | -0.98828125 214 | ] 215 | }, 216 | "3670": { 217 | "id": 3670, 218 | "data": { 219 | "model": "chat-bison-001", 220 | "top_k": 50, 221 | "top_p": 1, 222 | "success": false, 223 | "temperature": 0.5, 224 | "stopSequences": "" 225 | }, 226 | "name": "Generate Text", 227 | "inputs": { 228 | "input": { 229 | "connections": [ 230 | { 231 | "data": { 232 | "hello": "hello" 233 | }, 234 | "node": 494, 235 | "output": "content" 236 | } 237 | ] 238 | }, 239 | "system": { 240 | "connections": [ 241 | { 242 | "data": { 243 | "hello": "hello" 244 | }, 245 | "node": 494, 246 | "output": "content" 247 | } 248 | ] 249 | }, 250 | "trigger": { 251 | "connections": [ 252 | { 253 | "data": { 254 | "hello": "hello" 255 | }, 256 | "node": 3671, 257 | "output": "trigger" 258 | } 259 | ] 260 | }, 261 | "examples": { 262 | "connections": [] 263 | }, 264 | "conversation": { 265 | "connections": [ 266 | { 267 | "data": { 268 | "hello": "hello" 269 | }, 270 | "node": 3671, 271 | "output": "events" 272 | } 273 | ] 274 | } 275 | }, 276 | "outputs": { 277 | "error": { 278 | "connections": [] 279 | }, 280 | "result": { 281 | "connections": [ 282 | { 283 | "data": { 284 | "hello": "hello" 285 | }, 286 | "node": 233, 287 | "input": "input" 288 | }, 289 | { 290 | "data": { 291 | "hello": "hello" 292 | }, 293 | "node": 4548, 294 | "input": "input" 295 | } 296 | ] 297 | }, 298 | "trigger": { 299 | "connections": [ 300 | { 301 | "data": { 302 | "hello": "hello" 303 | }, 304 | "node": 4548, 305 | "input": "trigger" 306 | }, 307 | { 308 | "data": { 309 | "hello": "hello" 310 | }, 311 | "node": 233, 312 | "input": "trigger" 313 | } 314 | ] 315 | } 316 | }, 317 | "position": [ 318 | 528, 319 | -16 320 | ] 321 | }, 322 | "3671": { 323 | "id": 3671, 324 | "data": { 325 | "name": "Get Conversation", 326 | "type": "conversation", 327 | "success": false, 328 | "max_count": "6" 329 | }, 330 | "name": "Event Recall", 331 | "inputs": { 332 | "type": { 333 | "connections": [] 334 | }, 335 | "event": { 336 | "connections": [ 337 | { 338 | "data": { 339 | "hello": "hello" 340 | }, 341 | "node": 232, 342 | "output": "output" 343 | } 344 | ] 345 | }, 346 | "trigger": { 347 | "connections": [ 348 | { 349 | "data": { 350 | "hello": "hello" 351 | }, 352 | "node": 494, 353 | "output": "trigger" 354 | } 355 | ] 356 | }, 357 | "embedding": { 358 | "connections": [] 359 | } 360 | }, 361 | "outputs": { 362 | "events": { 363 | "connections": [ 364 | { 365 | "data": { 366 | "hello": "hello" 367 | }, 368 | "node": 3670, 369 | "input": "conversation" 370 | } 371 | ] 372 | }, 373 | "trigger": { 374 | "connections": [ 375 | { 376 | "data": { 377 | "hello": "hello" 378 | }, 379 | "node": 3670, 380 | "input": "trigger" 381 | } 382 | ] 383 | } 384 | }, 385 | "position": [ 386 | 160, 387 | 16 388 | ] 389 | }, 390 | "4548": { 391 | "id": 4548, 392 | "data": { 393 | "success": false, 394 | "socketKey": "145f7389-4926-4511-a4ba-1e9104f39054", 395 | "sendToPlaytest": true 396 | }, 397 | "name": "Respond", 398 | "inputs": { 399 | "event": { 400 | "connections": [ 401 | { 402 | "data": { 403 | "hello": "hello" 404 | }, 405 | "node": 232, 406 | "output": "output" 407 | } 408 | ] 409 | }, 410 | "input": { 411 | "connections": [ 412 | { 413 | "data": { 414 | "hello": "hello" 415 | }, 416 | "node": 3670, 417 | "output": "result" 418 | } 419 | ] 420 | }, 421 | "trigger": { 422 | "connections": [ 423 | { 424 | "data": { 425 | "hello": "hello" 426 | }, 427 | "node": 3670, 428 | "output": "trigger" 429 | } 430 | ] 431 | } 432 | }, 433 | "outputs": { 434 | "trigger": { 435 | "connections": [] 436 | } 437 | }, 438 | "position": [ 439 | 912, 440 | -256 441 | ] 442 | } 443 | }, 444 | "comments": [] 445 | } 446 | } -------------------------------------------------------------------------------- /spells/ELIZA_INTENT_ignore.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "65201795-ec5d-4722-b625-224b513529a4", 3 | "name": "ELIZA_INTENT_ignore", 4 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 5 | "hash": "c0ece00af5a5c9712bc5c6afc281886d", 6 | "createdAt": "1686210970868", 7 | "updatedAt": null, 8 | "graph": { 9 | "id": "demo@0.1.0", 10 | "nodes": { 11 | "232": { 12 | "id": 232, 13 | "data": { 14 | "name": "Input - Default", 15 | "text": { 16 | "id": "2eb64348-adee-4118-bcca-19697ca3a16a", 17 | "inputs": {}, 18 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 19 | "spellName": "Starter", 20 | "publicVariables": "[]" 21 | }, 22 | "isInput": true, 23 | "outputs": [], 24 | "success": false, 25 | "useData": true, 26 | "inputName": "Default", 27 | "inputType": "Default", 28 | "socketKey": "9d61118c-3c5a-4379-9dae-41965e56207f", 29 | "useDefault": false, 30 | "dataControls": { 31 | "inputType": { 32 | "expanded": true 33 | }, 34 | "useDefault": { 35 | "expanded": true 36 | }, 37 | "defaultValue": { 38 | "expanded": true 39 | } 40 | }, 41 | "defaultValue": "Hello world", 42 | "playtestToggle": { 43 | "outputs": [], 44 | "receivePlaytest": false 45 | } 46 | }, 47 | "name": "Input", 48 | "inputs": {}, 49 | "outputs": { 50 | "output": { 51 | "connections": [ 52 | { 53 | "data": { 54 | "hello": "hello" 55 | }, 56 | "node": 493, 57 | "input": "string" 58 | } 59 | ] 60 | }, 61 | "trigger": { 62 | "connections": [ 63 | { 64 | "data": { 65 | "hello": "hello" 66 | }, 67 | "node": 493, 68 | "input": "trigger" 69 | } 70 | ] 71 | } 72 | }, 73 | "position": [ 74 | -619.70703125, 75 | -3.83203125 76 | ] 77 | }, 78 | "493": { 79 | "id": 493, 80 | "data": { 81 | "success": false 82 | }, 83 | "name": "Echo", 84 | "inputs": { 85 | "string": { 86 | "connections": [ 87 | { 88 | "data": { 89 | "hello": "hello" 90 | }, 91 | "node": 232, 92 | "output": "output" 93 | } 94 | ] 95 | }, 96 | "trigger": { 97 | "connections": [ 98 | { 99 | "data": { 100 | "hello": "hello" 101 | }, 102 | "node": 232, 103 | "output": "trigger" 104 | } 105 | ] 106 | } 107 | }, 108 | "outputs": { 109 | "output": { 110 | "connections": [ 111 | { 112 | "data": { 113 | "hello": "hello" 114 | }, 115 | "node": 3701, 116 | "input": "input" 117 | } 118 | ] 119 | }, 120 | "trigger": { 121 | "connections": [ 122 | { 123 | "data": { 124 | "hello": "hello" 125 | }, 126 | "node": 3701, 127 | "input": "trigger" 128 | } 129 | ] 130 | } 131 | }, 132 | "position": [ 133 | -304, 134 | 0 135 | ] 136 | }, 137 | "3701": { 138 | "id": 3701, 139 | "data": { 140 | "name": "Output - Default", 141 | "isOutput": true, 142 | "socketKey": "1fa7153c-824f-49ca-8581-df50b376761c", 143 | "sendToPlaytest": true 144 | }, 145 | "name": "Output", 146 | "inputs": { 147 | "event": { 148 | "connections": [] 149 | }, 150 | "input": { 151 | "connections": [ 152 | { 153 | "data": { 154 | "hello": "hello" 155 | }, 156 | "node": 493, 157 | "output": "output" 158 | } 159 | ] 160 | }, 161 | "trigger": { 162 | "connections": [ 163 | { 164 | "data": { 165 | "hello": "hello" 166 | }, 167 | "node": 493, 168 | "output": "trigger" 169 | } 170 | ] 171 | } 172 | }, 173 | "outputs": { 174 | "output": { 175 | "connections": [] 176 | }, 177 | "trigger": { 178 | "connections": [] 179 | } 180 | }, 181 | "position": [ 182 | -16, 183 | 0 184 | ] 185 | } 186 | }, 187 | "comments": [] 188 | } 189 | } -------------------------------------------------------------------------------- /spells/ELIZA_INTENT_knowledge.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "488295c1-b897-4727-8913-90713bffa1ce", 3 | "name": "ELIZA_INTENT_knowledge", 4 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 5 | "hash": "623569537e062682995a1e73cfa8c770", 6 | "createdAt": "1686210970868", 7 | "updatedAt": null, 8 | "graph": { 9 | "id": "demo@0.1.0", 10 | "nodes": { 11 | "232": { 12 | "id": 232, 13 | "data": { 14 | "name": "Input - Default", 15 | "text": { 16 | "id": "2eb64348-adee-4118-bcca-19697ca3a16a", 17 | "inputs": {}, 18 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 19 | "spellName": "Starter", 20 | "publicVariables": "[]" 21 | }, 22 | "isInput": true, 23 | "outputs": [], 24 | "success": false, 25 | "useData": true, 26 | "inputName": "Default", 27 | "inputType": "Default", 28 | "socketKey": "9d61118c-3c5a-4379-9dae-41965e56207f", 29 | "useDefault": false, 30 | "dataControls": { 31 | "inputType": { 32 | "expanded": true 33 | }, 34 | "useDefault": { 35 | "expanded": true 36 | }, 37 | "defaultValue": { 38 | "expanded": true 39 | } 40 | }, 41 | "defaultValue": "Hello world", 42 | "playtestToggle": { 43 | "outputs": [], 44 | "receivePlaytest": false 45 | } 46 | }, 47 | "name": "Input", 48 | "inputs": {}, 49 | "outputs": { 50 | "output": { 51 | "connections": [ 52 | { 53 | "data": { 54 | "hello": "hello" 55 | }, 56 | "node": 494, 57 | "input": "event" 58 | }, 59 | { 60 | "data": { 61 | "hello": "hello" 62 | }, 63 | "node": 3671, 64 | "input": "event" 65 | }, 66 | { 67 | "data": { 68 | "hello": "hello" 69 | }, 70 | "node": 3672, 71 | "input": "event" 72 | }, 73 | { 74 | "data": { 75 | "hello": "hello" 76 | }, 77 | "node": 4895, 78 | "input": "event" 79 | }, 80 | { 81 | "data": { 82 | "hello": "hello" 83 | }, 84 | "node": 233, 85 | "input": "event" 86 | } 87 | ] 88 | }, 89 | "trigger": { 90 | "connections": [ 91 | { 92 | "data": { 93 | "hello": "hello" 94 | }, 95 | "node": 494, 96 | "input": "trigger" 97 | } 98 | ] 99 | } 100 | }, 101 | "position": [ 102 | -619.70703125, 103 | -3.83203125 104 | ] 105 | }, 106 | "233": { 107 | "id": 233, 108 | "data": { 109 | "name": "Output", 110 | "success": false, 111 | "isOutput": true, 112 | "socketKey": "0f17a35e-1380-428b-bc87-4a38d207fefc", 113 | "dataControls": { 114 | "name": { 115 | "expanded": true 116 | } 117 | }, 118 | "sendToPlaytest": true 119 | }, 120 | "name": "Output", 121 | "inputs": { 122 | "event": { 123 | "connections": [ 124 | { 125 | "data": { 126 | "hello": "hello" 127 | }, 128 | "node": 232, 129 | "output": "output" 130 | } 131 | ] 132 | }, 133 | "input": { 134 | "connections": [ 135 | { 136 | "data": { 137 | "hello": "hello" 138 | }, 139 | "node": 3670, 140 | "output": "result" 141 | } 142 | ] 143 | }, 144 | "trigger": { 145 | "connections": [ 146 | { 147 | "data": { 148 | "hello": "hello" 149 | }, 150 | "node": 3670, 151 | "output": "trigger" 152 | } 153 | ] 154 | } 155 | }, 156 | "outputs": { 157 | "output": { 158 | "connections": [] 159 | }, 160 | "trigger": { 161 | "connections": [] 162 | } 163 | }, 164 | "position": [ 165 | 1008, 166 | -64 167 | ] 168 | }, 169 | "494": { 170 | "id": 494, 171 | "data": { 172 | "success": false, 173 | "socketKey": "bbd9c07c-7bcc-454a-b5fe-cc6fd63f6a94" 174 | }, 175 | "name": "Event Destructure", 176 | "inputs": { 177 | "event": { 178 | "connections": [ 179 | { 180 | "data": { 181 | "hello": "hello" 182 | }, 183 | "node": 232, 184 | "output": "output" 185 | } 186 | ] 187 | }, 188 | "trigger": { 189 | "connections": [ 190 | { 191 | "data": { 192 | "hello": "hello" 193 | }, 194 | "node": 232, 195 | "output": "trigger" 196 | } 197 | ] 198 | } 199 | }, 200 | "outputs": { 201 | "client": { 202 | "connections": [] 203 | }, 204 | "sender": { 205 | "connections": [] 206 | }, 207 | "agentId": { 208 | "connections": [] 209 | }, 210 | "channel": { 211 | "connections": [] 212 | }, 213 | "content": { 214 | "connections": [ 215 | { 216 | "data": { 217 | "hello": "hello" 218 | }, 219 | "node": 3670, 220 | "input": "input" 221 | } 222 | ] 223 | }, 224 | "rawData": { 225 | "connections": [] 226 | }, 227 | "trigger": { 228 | "connections": [ 229 | { 230 | "data": { 231 | "hello": "hello" 232 | }, 233 | "node": 3671, 234 | "input": "trigger" 235 | }, 236 | { 237 | "data": { 238 | "hello": "hello" 239 | }, 240 | "node": 3672, 241 | "input": "trigger" 242 | } 243 | ] 244 | }, 245 | "entities": { 246 | "connections": [] 247 | }, 248 | "observer": { 249 | "connections": [] 250 | }, 251 | "connector": { 252 | "connections": [] 253 | }, 254 | "embedding": { 255 | "connections": [ 256 | { 257 | "data": { 258 | "hello": "hello" 259 | }, 260 | "node": 3672, 261 | "input": "embedding" 262 | } 263 | ] 264 | }, 265 | "projectId": { 266 | "connections": [] 267 | }, 268 | "channelType": { 269 | "connections": [] 270 | } 271 | }, 272 | "position": [ 273 | -338.375, 274 | -0.98828125 275 | ] 276 | }, 277 | "3670": { 278 | "id": 3670, 279 | "data": { 280 | "model": "chat-bison-001", 281 | "top_k": 50, 282 | "top_p": 1, 283 | "temperature": 0.5, 284 | "stopSequences": "" 285 | }, 286 | "name": "Generate Text", 287 | "inputs": { 288 | "input": { 289 | "connections": [ 290 | { 291 | "data": { 292 | "hello": "hello" 293 | }, 294 | "node": 494, 295 | "output": "content" 296 | } 297 | ] 298 | }, 299 | "system": { 300 | "connections": [ 301 | { 302 | "data": { 303 | "hello": "hello" 304 | }, 305 | "node": 3675, 306 | "output": "output" 307 | } 308 | ] 309 | }, 310 | "trigger": { 311 | "connections": [ 312 | { 313 | "data": { 314 | "hello": "hello" 315 | }, 316 | "node": 3674, 317 | "output": "default" 318 | } 319 | ] 320 | }, 321 | "examples": { 322 | "connections": [] 323 | }, 324 | "conversation": { 325 | "connections": [ 326 | { 327 | "data": { 328 | "hello": "hello" 329 | }, 330 | "node": 3671, 331 | "output": "events" 332 | } 333 | ] 334 | } 335 | }, 336 | "outputs": { 337 | "error": { 338 | "connections": [] 339 | }, 340 | "result": { 341 | "connections": [ 342 | { 343 | "data": { 344 | "hello": "hello" 345 | }, 346 | "node": 233, 347 | "input": "input" 348 | }, 349 | { 350 | "data": { 351 | "hello": "hello" 352 | }, 353 | "node": 4895, 354 | "input": "input" 355 | } 356 | ] 357 | }, 358 | "trigger": { 359 | "connections": [ 360 | { 361 | "data": { 362 | "hello": "hello" 363 | }, 364 | "node": 233, 365 | "input": "trigger" 366 | }, 367 | { 368 | "data": { 369 | "hello": "hello" 370 | }, 371 | "node": 4895, 372 | "input": "trigger" 373 | } 374 | ] 375 | } 376 | }, 377 | "position": [ 378 | 624, 379 | -224 380 | ] 381 | }, 382 | "3671": { 383 | "id": 3671, 384 | "data": { 385 | "name": "recall conversation", 386 | "type": "conversation", 387 | "max_count": "6", 388 | "socketKey": null 389 | }, 390 | "name": "Event Recall", 391 | "inputs": { 392 | "type": { 393 | "connections": [] 394 | }, 395 | "event": { 396 | "connections": [ 397 | { 398 | "data": { 399 | "hello": "hello" 400 | }, 401 | "node": 232, 402 | "output": "output" 403 | } 404 | ] 405 | }, 406 | "trigger": { 407 | "connections": [ 408 | { 409 | "data": { 410 | "hello": "hello" 411 | }, 412 | "node": 494, 413 | "output": "trigger" 414 | } 415 | ] 416 | }, 417 | "embedding": { 418 | "connections": [] 419 | } 420 | }, 421 | "outputs": { 422 | "events": { 423 | "connections": [ 424 | { 425 | "data": { 426 | "hello": "hello" 427 | }, 428 | "node": 3670, 429 | "input": "conversation" 430 | } 431 | ] 432 | }, 433 | "trigger": { 434 | "connections": [ 435 | { 436 | "data": { 437 | "hello": "hello" 438 | }, 439 | "node": 3674, 440 | "input": "recent" 441 | } 442 | ] 443 | } 444 | }, 445 | "position": [ 446 | 16, 447 | 0 448 | ] 449 | }, 450 | "3672": { 451 | "id": 3672, 452 | "data": { 453 | "name": "longterm memory", 454 | "type": "conversation", 455 | "max_count": "3", 456 | "socketKey": null 457 | }, 458 | "name": "Event Recall", 459 | "inputs": { 460 | "type": { 461 | "connections": [] 462 | }, 463 | "event": { 464 | "connections": [ 465 | { 466 | "data": { 467 | "hello": "hello" 468 | }, 469 | "node": 232, 470 | "output": "output" 471 | } 472 | ] 473 | }, 474 | "trigger": { 475 | "connections": [ 476 | { 477 | "data": { 478 | "hello": "hello" 479 | }, 480 | "node": 494, 481 | "output": "trigger" 482 | } 483 | ] 484 | }, 485 | "embedding": { 486 | "connections": [ 487 | { 488 | "data": { 489 | "hello": "hello" 490 | }, 491 | "node": 494, 492 | "output": "embedding" 493 | } 494 | ] 495 | } 496 | }, 497 | "outputs": { 498 | "events": { 499 | "connections": [ 500 | { 501 | "data": { 502 | "hello": "hello" 503 | }, 504 | "node": 3675, 505 | "input": "events" 506 | } 507 | ] 508 | }, 509 | "trigger": { 510 | "connections": [ 511 | { 512 | "data": { 513 | "hello": "hello" 514 | }, 515 | "node": 3675, 516 | "input": "trigger" 517 | } 518 | ] 519 | } 520 | }, 521 | "position": [ 522 | 16, 523 | -288 524 | ] 525 | }, 526 | "3674": { 527 | "id": 3674, 528 | "data": { 529 | "inputs": [ 530 | { 531 | "name": "recent", 532 | "taskType": "output", 533 | "socketKey": "recent", 534 | "socketType": "triggerSocket", 535 | "connectionType": "input" 536 | }, 537 | { 538 | "name": "memory", 539 | "taskType": "output", 540 | "socketKey": "memory", 541 | "socketType": "triggerSocket", 542 | "connectionType": "input" 543 | } 544 | ] 545 | }, 546 | "name": "Wait For All", 547 | "inputs": { 548 | "memory": { 549 | "connections": [ 550 | { 551 | "data": { 552 | "hello": "hello" 553 | }, 554 | "node": 3675, 555 | "output": "trigger" 556 | } 557 | ] 558 | }, 559 | "recent": { 560 | "connections": [ 561 | { 562 | "data": { 563 | "hello": "hello" 564 | }, 565 | "node": 3671, 566 | "output": "trigger" 567 | } 568 | ] 569 | } 570 | }, 571 | "outputs": { 572 | "default": { 573 | "connections": [ 574 | { 575 | "data": { 576 | "hello": "hello" 577 | }, 578 | "node": 3670, 579 | "input": "trigger" 580 | } 581 | ] 582 | } 583 | }, 584 | "position": [ 585 | 320, 586 | -96 587 | ] 588 | }, 589 | "3675": { 590 | "id": 3675, 591 | "data": { 592 | "code": "\n// inputs: dictionary of inputs based on socket names\n// data: internal data of the node to read or write to nodes data state\nfunction worker({\n events,\n}, data) {\n\n const eventText = events.map(event => {\n const text = `${event.sender}: ${event.content}\\n`\n return text\n })\n\nconst prompt = `[Events from memory]\n${eventText}\nRespond to the user in a helpful and professional manner.`\n\n return {\n output: prompt\n }\n}", 593 | "inputs": [ 594 | { 595 | "name": "events", 596 | "taskType": "output", 597 | "socketKey": "events", 598 | "socketType": "anySocket", 599 | "connectionType": "input" 600 | } 601 | ], 602 | "outputs": [ 603 | { 604 | "name": "output", 605 | "taskType": "output", 606 | "socketKey": "output", 607 | "socketType": "anySocket", 608 | "connectionType": "output" 609 | } 610 | ] 611 | }, 612 | "name": "Javascript", 613 | "inputs": { 614 | "events": { 615 | "connections": [ 616 | { 617 | "data": { 618 | "hello": "hello" 619 | }, 620 | "node": 3672, 621 | "output": "events" 622 | } 623 | ] 624 | }, 625 | "trigger": { 626 | "connections": [ 627 | { 628 | "data": { 629 | "hello": "hello" 630 | }, 631 | "node": 3672, 632 | "output": "trigger" 633 | } 634 | ] 635 | } 636 | }, 637 | "outputs": { 638 | "output": { 639 | "connections": [ 640 | { 641 | "data": { 642 | "hello": "hello" 643 | }, 644 | "node": 3670, 645 | "input": "system" 646 | } 647 | ] 648 | }, 649 | "trigger": { 650 | "connections": [ 651 | { 652 | "data": { 653 | "hello": "hello" 654 | }, 655 | "node": 3674, 656 | "input": "memory" 657 | } 658 | ] 659 | } 660 | }, 661 | "position": [ 662 | 320, 663 | -288 664 | ] 665 | }, 666 | "4895": { 667 | "id": 4895, 668 | "data": { 669 | "socketKey": "05c886d5-3d6b-4151-b9dd-643fc8cc2b9f", 670 | "sendToPlaytest": true 671 | }, 672 | "name": "Respond", 673 | "inputs": { 674 | "event": { 675 | "connections": [ 676 | { 677 | "data": { 678 | "hello": "hello" 679 | }, 680 | "node": 232, 681 | "output": "output" 682 | } 683 | ] 684 | }, 685 | "input": { 686 | "connections": [ 687 | { 688 | "data": { 689 | "hello": "hello" 690 | }, 691 | "node": 3670, 692 | "output": "result" 693 | } 694 | ] 695 | }, 696 | "trigger": { 697 | "connections": [ 698 | { 699 | "data": { 700 | "hello": "hello" 701 | }, 702 | "node": 3670, 703 | "output": "trigger" 704 | } 705 | ] 706 | } 707 | }, 708 | "outputs": { 709 | "trigger": { 710 | "connections": [] 711 | } 712 | }, 713 | "position": [ 714 | 1008, 715 | -304 716 | ] 717 | } 718 | }, 719 | "comments": [] 720 | } 721 | } -------------------------------------------------------------------------------- /spells/ELIZA_INTENT_leavevoice.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "74f4929a-c680-48dd-a37e-bd2e1bf7c2fa", 3 | "name": "ELIZA_INTENT_leavevoice", 4 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 5 | "hash": "754ac42bfcf48d304e261905aaec6c26", 6 | "createdAt": "1686210970868", 7 | "updatedAt": "1687076341495", 8 | "graph": { 9 | "id": "demo@0.1.0", 10 | "nodes": { 11 | "232": { 12 | "id": 232, 13 | "data": { 14 | "name": "Input - Default", 15 | "isInput": true, 16 | "success": false, 17 | "useData": true, 18 | "inputName": "Default", 19 | "socketKey": "607e39a9-4728-433a-8497-8aad4c648615" 20 | }, 21 | "name": "Input", 22 | "inputs": {}, 23 | "outputs": { 24 | "output": { 25 | "connections": [ 26 | { 27 | "data": { 28 | "hello": "hello" 29 | }, 30 | "node": 6870, 31 | "input": "event" 32 | }, 33 | { 34 | "data": { 35 | "hello": "hello" 36 | }, 37 | "node": 6876, 38 | "input": "input" 39 | } 40 | ] 41 | }, 42 | "trigger": { 43 | "connections": [ 44 | { 45 | "data": { 46 | "hello": "hello" 47 | }, 48 | "node": 6870, 49 | "input": "trigger" 50 | }, 51 | { 52 | "data": { 53 | "hello": "hello" 54 | }, 55 | "node": 6876, 56 | "input": "trigger" 57 | } 58 | ] 59 | } 60 | }, 61 | "position": [ 62 | -624, 63 | -16 64 | ] 65 | }, 66 | "233": { 67 | "id": 233, 68 | "data": { 69 | "name": "Output - Default", 70 | "success": false, 71 | "isOutput": true, 72 | "socketKey": "7315dd07-a515-48b4-8397-d4e52ebf2dd0", 73 | "sendToPlaytest": true 74 | }, 75 | "name": "Output", 76 | "inputs": { 77 | "event": { 78 | "connections": [] 79 | }, 80 | "input": { 81 | "connections": [ 82 | { 83 | "data": { 84 | "hello": "hello" 85 | }, 86 | "node": 6872, 87 | "output": "output" 88 | } 89 | ] 90 | }, 91 | "trigger": { 92 | "connections": [ 93 | { 94 | "data": { 95 | "hello": "hello" 96 | }, 97 | "node": 6872, 98 | "output": "trigger" 99 | } 100 | ] 101 | } 102 | }, 103 | "outputs": { 104 | "output": { 105 | "connections": [] 106 | }, 107 | "trigger": { 108 | "connections": [] 109 | } 110 | }, 111 | "position": [ 112 | 640, 113 | 16 114 | ] 115 | }, 116 | "6870": { 117 | "id": 6870, 118 | "data": { 119 | "success": false 120 | }, 121 | "name": "Leave Voice Channels In Server", 122 | "inputs": { 123 | "event": { 124 | "connections": [ 125 | { 126 | "data": { 127 | "hello": "hello" 128 | }, 129 | "node": 232, 130 | "output": "output" 131 | } 132 | ] 133 | }, 134 | "trigger": { 135 | "connections": [ 136 | { 137 | "data": { 138 | "hello": "hello" 139 | }, 140 | "node": 232, 141 | "output": "trigger" 142 | } 143 | ] 144 | } 145 | }, 146 | "outputs": { 147 | "left": { 148 | "connections": [ 149 | { 150 | "data": { 151 | "hello": "hello" 152 | }, 153 | "node": 6871, 154 | "input": "input" 155 | } 156 | ] 157 | }, 158 | "trigger": { 159 | "connections": [ 160 | { 161 | "data": { 162 | "hello": "hello" 163 | }, 164 | "node": 6871, 165 | "input": "trigger" 166 | } 167 | ] 168 | } 169 | }, 170 | "position": [ 171 | -304, 172 | -16 173 | ] 174 | }, 175 | "6871": { 176 | "id": 6871, 177 | "data": { 178 | "success": false 179 | }, 180 | "name": "Is Variable True", 181 | "inputs": { 182 | "input": { 183 | "connections": [ 184 | { 185 | "data": { 186 | "hello": "hello" 187 | }, 188 | "node": 6870, 189 | "output": "left" 190 | } 191 | ] 192 | }, 193 | "trigger": { 194 | "connections": [ 195 | { 196 | "data": { 197 | "hello": "hello" 198 | }, 199 | "node": 6870, 200 | "output": "trigger" 201 | } 202 | ] 203 | } 204 | }, 205 | "outputs": { 206 | "true": { 207 | "connections": [ 208 | { 209 | "data": { 210 | "hello": "hello" 211 | }, 212 | "node": 6872, 213 | "input": "true trigger" 214 | } 215 | ] 216 | }, 217 | "false": { 218 | "connections": [ 219 | { 220 | "data": { 221 | "hello": "hello" 222 | }, 223 | "node": 6872, 224 | "input": "false trigger" 225 | } 226 | ] 227 | } 228 | }, 229 | "position": [ 230 | 0, 231 | 0 232 | ] 233 | }, 234 | "6872": { 235 | "id": 6872, 236 | "data": { 237 | "inputs": [ 238 | { 239 | "name": "true trigger", 240 | "taskType": "option", 241 | "socketKey": "true trigger", 242 | "socketType": "triggerSocket", 243 | "connectionType": "input" 244 | }, 245 | { 246 | "name": "true data", 247 | "taskType": "output", 248 | "socketKey": "true data", 249 | "socketType": "anySocket", 250 | "connectionType": "input" 251 | }, 252 | { 253 | "name": "false trigger", 254 | "taskType": "option", 255 | "socketKey": "false trigger", 256 | "socketType": "triggerSocket", 257 | "connectionType": "input" 258 | }, 259 | { 260 | "name": "false data", 261 | "taskType": "output", 262 | "socketKey": "false data", 263 | "socketType": "anySocket", 264 | "connectionType": "input" 265 | } 266 | ], 267 | "success": false 268 | }, 269 | "name": "Exclusive Gate", 270 | "inputs": { 271 | "true data": { 272 | "connections": [ 273 | { 274 | "data": { 275 | "hello": "hello" 276 | }, 277 | "node": 6874, 278 | "output": "output" 279 | } 280 | ] 281 | }, 282 | "false data": { 283 | "connections": [ 284 | { 285 | "data": { 286 | "hello": "hello" 287 | }, 288 | "node": 6873, 289 | "output": "output" 290 | } 291 | ] 292 | }, 293 | "true trigger": { 294 | "connections": [ 295 | { 296 | "data": { 297 | "hello": "hello" 298 | }, 299 | "node": 6871, 300 | "output": "true" 301 | } 302 | ] 303 | }, 304 | "false trigger": { 305 | "connections": [ 306 | { 307 | "data": { 308 | "hello": "hello" 309 | }, 310 | "node": 6871, 311 | "output": "false" 312 | } 313 | ] 314 | } 315 | }, 316 | "outputs": { 317 | "output": { 318 | "connections": [ 319 | { 320 | "data": { 321 | "hello": "hello" 322 | }, 323 | "node": 233, 324 | "input": "input" 325 | }, 326 | { 327 | "data": { 328 | "hello": "hello" 329 | }, 330 | "node": 6875, 331 | "input": "input" 332 | } 333 | ] 334 | }, 335 | "trigger": { 336 | "connections": [ 337 | { 338 | "data": { 339 | "hello": "hello" 340 | }, 341 | "node": 233, 342 | "input": "trigger" 343 | }, 344 | { 345 | "data": { 346 | "hello": "hello" 347 | }, 348 | "node": 6875, 349 | "input": "trigger" 350 | } 351 | ] 352 | } 353 | }, 354 | "position": [ 355 | 320, 356 | -128 357 | ] 358 | }, 359 | "6873": { 360 | "id": 6873, 361 | "data": { 362 | "fewshot": "I'm not in any voice channels on this server right now.", 363 | "success": false, 364 | "isPublic": false, 365 | "socketKey": null 366 | }, 367 | "name": "Text Variable", 368 | "inputs": {}, 369 | "outputs": { 370 | "output": { 371 | "connections": [ 372 | { 373 | "data": { 374 | "hello": "hello" 375 | }, 376 | "node": 6872, 377 | "input": "false data" 378 | } 379 | ] 380 | } 381 | }, 382 | "position": [ 383 | -16, 384 | -208 385 | ] 386 | }, 387 | "6874": { 388 | "id": 6874, 389 | "data": { 390 | "fewshot": "Okay, I left the voice chat.", 391 | "success": false, 392 | "isPublic": false, 393 | "socketKey": null 394 | }, 395 | "name": "Text Variable", 396 | "inputs": {}, 397 | "outputs": { 398 | "output": { 399 | "connections": [ 400 | { 401 | "data": { 402 | "hello": "hello" 403 | }, 404 | "node": 6872, 405 | "input": "true data" 406 | } 407 | ] 408 | } 409 | }, 410 | "position": [ 411 | -16, 412 | -112 413 | ] 414 | }, 415 | "6875": { 416 | "id": 6875, 417 | "data": { 418 | "success": false, 419 | "socketKey": "92cc3f3a-9a46-41cb-ad8b-4c9530a0558f", 420 | "sendToPlaytest": true 421 | }, 422 | "name": "Respond", 423 | "inputs": { 424 | "event": { 425 | "connections": [] 426 | }, 427 | "input": { 428 | "connections": [ 429 | { 430 | "data": { 431 | "hello": "hello" 432 | }, 433 | "node": 6872, 434 | "output": "output" 435 | } 436 | ] 437 | }, 438 | "trigger": { 439 | "connections": [ 440 | { 441 | "data": { 442 | "hello": "hello" 443 | }, 444 | "node": 6872, 445 | "output": "trigger" 446 | } 447 | ] 448 | } 449 | }, 450 | "outputs": { 451 | "trigger": { 452 | "connections": [] 453 | } 454 | }, 455 | "position": [ 456 | 640, 457 | -224 458 | ] 459 | }, 460 | "6876": { 461 | "id": 6876, 462 | "data": { 463 | "socketKey": "442b9f7d-e7f6-4210-a3b5-8afccfe0bb66", 464 | "sendToPlaytest": true 465 | }, 466 | "name": "Respond", 467 | "inputs": { 468 | "event": { 469 | "connections": [] 470 | }, 471 | "input": { 472 | "connections": [ 473 | { 474 | "data": { 475 | "hello": "hello" 476 | }, 477 | "node": 232, 478 | "output": "output" 479 | } 480 | ] 481 | }, 482 | "trigger": { 483 | "connections": [ 484 | { 485 | "data": { 486 | "hello": "hello" 487 | }, 488 | "node": 232, 489 | "output": "trigger" 490 | } 491 | ] 492 | } 493 | }, 494 | "outputs": { 495 | "trigger": { 496 | "connections": [] 497 | } 498 | }, 499 | "position": [ 500 | -295.7269839791254, 501 | -227.59825740296924 502 | ] 503 | } 504 | }, 505 | "comments": [] 506 | } 507 | } -------------------------------------------------------------------------------- /spells/ELIZA_INTENT_task.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "361012fd-c0de-4e88-afa0-480733219a97", 3 | "name": "ELIZA_INTENT_task", 4 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 5 | "hash": "aca933a459760c65abaf296462931d20", 6 | "createdAt": "1686210970868", 7 | "updatedAt": null, 8 | "graph": { 9 | "id": "demo@0.1.0", 10 | "nodes": { 11 | "232": { 12 | "id": 232, 13 | "data": { 14 | "name": "Input - Default", 15 | "text": { 16 | "id": "2eb64348-adee-4118-bcca-19697ca3a16a", 17 | "inputs": { 18 | "Input - Default": { 19 | "type": "playtest", 20 | "client": "playtest", 21 | "sender": "playtestSender", 22 | "agentId": "preview", 23 | "channel": "playtest", 24 | "content": "testing", 25 | "entities": [ 26 | "playtestSender", 27 | "Agent" 28 | ], 29 | "observer": "Agent", 30 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 31 | "channelType": "playtest" 32 | } 33 | }, 34 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 35 | "spellName": "Starter", 36 | "publicVariables": "[]" 37 | }, 38 | "isInput": true, 39 | "outputs": [], 40 | "success": false, 41 | "useData": true, 42 | "inputName": "Default", 43 | "inputType": "Default", 44 | "socketKey": "9d61118c-3c5a-4379-9dae-41965e56207f", 45 | "useDefault": false, 46 | "useTrigger": true, 47 | "dataControls": { 48 | "inputType": { 49 | "expanded": true 50 | } 51 | }, 52 | "defaultValue": "Hello world", 53 | "playtestToggle": { 54 | "outputs": [], 55 | "receivePlaytest": false 56 | } 57 | }, 58 | "name": "Input", 59 | "inputs": {}, 60 | "outputs": { 61 | "output": { 62 | "connections": [ 63 | { 64 | "data": { 65 | "hello": "hello" 66 | }, 67 | "node": 525, 68 | "input": "event" 69 | }, 70 | { 71 | "data": { 72 | "hello": "hello" 73 | }, 74 | "node": 529, 75 | "input": "event" 76 | }, 77 | { 78 | "data": { 79 | "hello": "hello" 80 | }, 81 | "node": 497, 82 | "input": "event" 83 | }, 84 | { 85 | "data": { 86 | "hello": "hello" 87 | }, 88 | "node": 2552, 89 | "input": "event" 90 | } 91 | ] 92 | }, 93 | "trigger": { 94 | "connections": [ 95 | { 96 | "data": { 97 | "hello": "hello" 98 | }, 99 | "node": 525, 100 | "input": "trigger" 101 | } 102 | ] 103 | } 104 | }, 105 | "position": [ 106 | -1216, 107 | -128 108 | ] 109 | }, 110 | "497": { 111 | "id": 497, 112 | "data": { 113 | "type": "task", 114 | "success": false, 115 | "dataControls": { 116 | "type": { 117 | "expanded": true 118 | } 119 | } 120 | }, 121 | "name": "Create Task", 122 | "inputs": { 123 | "event": { 124 | "connections": [ 125 | { 126 | "data": { 127 | "hello": "hello" 128 | }, 129 | "node": 232, 130 | "output": "output" 131 | } 132 | ] 133 | }, 134 | "trigger": { 135 | "connections": [ 136 | { 137 | "data": { 138 | "hello": "hello" 139 | }, 140 | "node": 3246, 141 | "output": "trigger" 142 | } 143 | ] 144 | }, 145 | "objective": { 146 | "connections": [ 147 | { 148 | "data": { 149 | "hello": "hello" 150 | }, 151 | "node": 3246, 152 | "output": "result" 153 | } 154 | ] 155 | } 156 | }, 157 | "outputs": { 158 | "task": { 159 | "connections": [] 160 | }, 161 | "trigger": { 162 | "connections": [ 163 | { 164 | "data": { 165 | "hello": "hello" 166 | }, 167 | "node": 550, 168 | "input": "trigger" 169 | } 170 | ] 171 | } 172 | }, 173 | "position": [ 174 | 496, 175 | -160 176 | ] 177 | }, 178 | "525": { 179 | "id": 525, 180 | "data": { 181 | "success": false, 182 | "socketKey": "d2fad911-891f-4dd0-a9dd-80a74b62c910" 183 | }, 184 | "name": "Event Destructure", 185 | "inputs": { 186 | "event": { 187 | "connections": [ 188 | { 189 | "data": { 190 | "hello": "hello" 191 | }, 192 | "node": 232, 193 | "output": "output" 194 | } 195 | ] 196 | }, 197 | "trigger": { 198 | "connections": [ 199 | { 200 | "data": { 201 | "hello": "hello" 202 | }, 203 | "node": 232, 204 | "output": "trigger" 205 | } 206 | ] 207 | } 208 | }, 209 | "outputs": { 210 | "client": { 211 | "connections": [] 212 | }, 213 | "sender": { 214 | "connections": [ 215 | { 216 | "data": { 217 | "hello": "hello" 218 | }, 219 | "node": 528, 220 | "input": "user" 221 | } 222 | ] 223 | }, 224 | "agentId": { 225 | "connections": [] 226 | }, 227 | "channel": { 228 | "connections": [] 229 | }, 230 | "content": { 231 | "connections": [ 232 | { 233 | "data": { 234 | "hello": "hello" 235 | }, 236 | "node": 3246, 237 | "input": "input" 238 | } 239 | ] 240 | }, 241 | "rawData": { 242 | "connections": [] 243 | }, 244 | "trigger": { 245 | "connections": [ 246 | { 247 | "data": { 248 | "hello": "hello" 249 | }, 250 | "node": 529, 251 | "input": "trigger" 252 | } 253 | ] 254 | }, 255 | "entities": { 256 | "connections": [] 257 | }, 258 | "observer": { 259 | "connections": [ 260 | { 261 | "data": { 262 | "hello": "hello" 263 | }, 264 | "node": 528, 265 | "input": "agent" 266 | } 267 | ] 268 | }, 269 | "connector": { 270 | "connections": [] 271 | }, 272 | "embedding": { 273 | "connections": [] 274 | }, 275 | "projectId": { 276 | "connections": [] 277 | }, 278 | "channelType": { 279 | "connections": [] 280 | } 281 | }, 282 | "position": [ 283 | -928, 284 | -144 285 | ] 286 | }, 287 | "528": { 288 | "id": 528, 289 | "data": { 290 | "inputs": [ 291 | { 292 | "name": "agent", 293 | "taskType": "output", 294 | "socketKey": "agent", 295 | "socketType": "anySocket", 296 | "connectionType": "input" 297 | }, 298 | { 299 | "name": "user", 300 | "taskType": "output", 301 | "socketKey": "user", 302 | "socketType": "anySocket", 303 | "connectionType": "input" 304 | } 305 | ], 306 | "fewshot": "{{agent}} has all of the capabilities of a human assistant, including responding to requests thoughtfully, thinking, planning, etc.\n\n[TASK EXAMPLES]\n{{user}}: Hey how are you?\n{{agent}}: {{user}} is asking me a question. I should respond.\n\n{{user}}: Hello\n{{agent}}: {{user}} is greeting me. I should also greet them.\n\n{{user}}: Hey there\n{{agent}}: Hello!\n{{user}}: Can you help me solve a bug?\n{{agent}}: {{user}} is asking me to solve a bug, probably in their code. I should let them know that I can help.\n\n{{user}}: Can you tell me what's on my calendar today?\n{{agent}}: {{user}} wants me to check their calendar and summarize when and what is happening today.\n\n[TASK DESCRIPTION]\nBased on {{user}}'s input, write a user story for {{agent}} that highlights the user's need and how {{agent}} can help them. The response should start with \"{{user}} is\" and focus on what {{agent}} should do. The response should be brief.", 307 | "success": false, 308 | "dataControls": { 309 | "inputs": { 310 | "expanded": true 311 | }, 312 | "fewshot": { 313 | "expanded": true 314 | } 315 | } 316 | }, 317 | "name": "Text Template", 318 | "inputs": { 319 | "user": { 320 | "connections": [ 321 | { 322 | "data": { 323 | "hello": "hello" 324 | }, 325 | "node": 525, 326 | "output": "sender" 327 | } 328 | ] 329 | }, 330 | "agent": { 331 | "connections": [ 332 | { 333 | "data": { 334 | "hello": "hello" 335 | }, 336 | "node": 525, 337 | "output": "observer" 338 | } 339 | ] 340 | }, 341 | "trigger": { 342 | "connections": [ 343 | { 344 | "data": { 345 | "hello": "hello" 346 | }, 347 | "node": 529, 348 | "output": "trigger" 349 | } 350 | ] 351 | } 352 | }, 353 | "outputs": { 354 | "prompt": { 355 | "connections": [ 356 | { 357 | "data": { 358 | "hello": "hello" 359 | }, 360 | "node": 3246, 361 | "input": "system" 362 | } 363 | ] 364 | }, 365 | "trigger": { 366 | "connections": [ 367 | { 368 | "data": { 369 | "hello": "hello" 370 | }, 371 | "node": 3246, 372 | "input": "trigger" 373 | } 374 | ] 375 | } 376 | }, 377 | "position": [ 378 | -176, 379 | -160 380 | ] 381 | }, 382 | "529": { 383 | "id": 529, 384 | "data": { 385 | "name": "Recall Conversation", 386 | "type": "conversation", 387 | "success": false, 388 | "max_count": "4", 389 | "dataControls": { 390 | "name": { 391 | "expanded": true 392 | }, 393 | "type": { 394 | "expanded": true 395 | }, 396 | "max_count": { 397 | "expanded": true 398 | } 399 | } 400 | }, 401 | "name": "Event Recall", 402 | "inputs": { 403 | "type": { 404 | "connections": [] 405 | }, 406 | "event": { 407 | "connections": [ 408 | { 409 | "data": { 410 | "hello": "hello" 411 | }, 412 | "node": 232, 413 | "output": "output" 414 | } 415 | ] 416 | }, 417 | "trigger": { 418 | "connections": [ 419 | { 420 | "data": { 421 | "hello": "hello" 422 | }, 423 | "node": 525, 424 | "output": "trigger" 425 | } 426 | ] 427 | }, 428 | "embedding": { 429 | "connections": [] 430 | } 431 | }, 432 | "outputs": { 433 | "events": { 434 | "connections": [ 435 | { 436 | "data": { 437 | "hello": "hello" 438 | }, 439 | "node": 3246, 440 | "input": "conversation" 441 | } 442 | ] 443 | }, 444 | "trigger": { 445 | "connections": [ 446 | { 447 | "data": { 448 | "hello": "hello" 449 | }, 450 | "node": 528, 451 | "input": "trigger" 452 | } 453 | ] 454 | } 455 | }, 456 | "position": [ 457 | -512, 458 | -160 459 | ] 460 | }, 461 | "550": { 462 | "id": 550, 463 | "data": { 464 | "inputs": [ 465 | { 466 | "name": "objective", 467 | "taskType": "output", 468 | "socketKey": "objective", 469 | "socketType": "anySocket", 470 | "connectionType": "input" 471 | } 472 | ], 473 | "fewshot": "I'm starting a new task with the following objective: `{{objective}}`", 474 | "success": false, 475 | "dataControls": { 476 | "inputs": { 477 | "expanded": true 478 | }, 479 | "fewshot": { 480 | "expanded": true 481 | } 482 | } 483 | }, 484 | "name": "Text Template", 485 | "inputs": { 486 | "trigger": { 487 | "connections": [ 488 | { 489 | "data": { 490 | "hello": "hello" 491 | }, 492 | "node": 497, 493 | "output": "trigger" 494 | } 495 | ] 496 | }, 497 | "objective": { 498 | "connections": [ 499 | { 500 | "data": { 501 | "hello": "hello" 502 | }, 503 | "node": 3246, 504 | "output": "result" 505 | } 506 | ] 507 | } 508 | }, 509 | "outputs": { 510 | "prompt": { 511 | "connections": [ 512 | { 513 | "data": { 514 | "hello": "hello" 515 | }, 516 | "node": 2552, 517 | "input": "input" 518 | }, 519 | { 520 | "data": { 521 | "hello": "hello" 522 | }, 523 | "node": 3247, 524 | "input": "input" 525 | } 526 | ] 527 | }, 528 | "trigger": { 529 | "connections": [ 530 | { 531 | "data": { 532 | "hello": "hello" 533 | }, 534 | "node": 2552, 535 | "input": "trigger" 536 | }, 537 | { 538 | "data": { 539 | "hello": "hello" 540 | }, 541 | "node": 3247, 542 | "input": "trigger" 543 | } 544 | ] 545 | } 546 | }, 547 | "position": [ 548 | 912, 549 | -80 550 | ] 551 | }, 552 | "2552": { 553 | "id": 2552, 554 | "data": { 555 | "success": false, 556 | "socketKey": "77fe25d1-07ba-4d25-a625-b1cd067c5d09", 557 | "sendToPlaytest": true 558 | }, 559 | "name": "Respond", 560 | "inputs": { 561 | "event": { 562 | "connections": [ 563 | { 564 | "data": { 565 | "hello": "hello" 566 | }, 567 | "node": 232, 568 | "output": "output" 569 | } 570 | ] 571 | }, 572 | "input": { 573 | "connections": [ 574 | { 575 | "data": { 576 | "hello": "hello" 577 | }, 578 | "node": 550, 579 | "output": "prompt" 580 | } 581 | ] 582 | }, 583 | "trigger": { 584 | "connections": [ 585 | { 586 | "data": { 587 | "hello": "hello" 588 | }, 589 | "node": 550, 590 | "output": "trigger" 591 | } 592 | ] 593 | } 594 | }, 595 | "outputs": { 596 | "trigger": { 597 | "connections": [] 598 | } 599 | }, 600 | "position": [ 601 | 1216, 602 | -80 603 | ] 604 | }, 605 | "3246": { 606 | "id": 3246, 607 | "data": { 608 | "model": "chat-bison-001", 609 | "top_k": 50, 610 | "top_p": 1, 611 | "temperature": 0.5, 612 | "stopSequences": "" 613 | }, 614 | "name": "Generate Text", 615 | "inputs": { 616 | "input": { 617 | "connections": [ 618 | { 619 | "data": { 620 | "hello": "hello" 621 | }, 622 | "node": 525, 623 | "output": "content" 624 | } 625 | ] 626 | }, 627 | "system": { 628 | "connections": [ 629 | { 630 | "data": { 631 | "hello": "hello" 632 | }, 633 | "node": 528, 634 | "output": "prompt" 635 | } 636 | ] 637 | }, 638 | "trigger": { 639 | "connections": [ 640 | { 641 | "data": { 642 | "hello": "hello" 643 | }, 644 | "node": 528, 645 | "output": "trigger" 646 | } 647 | ] 648 | }, 649 | "examples": { 650 | "connections": [] 651 | }, 652 | "conversation": { 653 | "connections": [ 654 | { 655 | "data": { 656 | "hello": "hello" 657 | }, 658 | "node": 529, 659 | "output": "events" 660 | } 661 | ] 662 | } 663 | }, 664 | "outputs": { 665 | "error": { 666 | "connections": [] 667 | }, 668 | "result": { 669 | "connections": [ 670 | { 671 | "data": { 672 | "hello": "hello" 673 | }, 674 | "node": 497, 675 | "input": "objective" 676 | }, 677 | { 678 | "data": { 679 | "hello": "hello" 680 | }, 681 | "node": 550, 682 | "input": "objective" 683 | } 684 | ] 685 | }, 686 | "trigger": { 687 | "connections": [ 688 | { 689 | "data": { 690 | "hello": "hello" 691 | }, 692 | "node": 497, 693 | "input": "trigger" 694 | } 695 | ] 696 | } 697 | }, 698 | "position": [ 699 | 176, 700 | -160 701 | ] 702 | }, 703 | "3247": { 704 | "id": 3247, 705 | "data": { 706 | "name": "Output - Default", 707 | "isOutput": true, 708 | "socketKey": "3e796186-0520-4301-85d3-fd3cf43a1928", 709 | "sendToPlaytest": true 710 | }, 711 | "name": "Output", 712 | "inputs": { 713 | "event": { 714 | "connections": [] 715 | }, 716 | "input": { 717 | "connections": [ 718 | { 719 | "data": { 720 | "hello": "hello" 721 | }, 722 | "node": 550, 723 | "output": "prompt" 724 | } 725 | ] 726 | }, 727 | "trigger": { 728 | "connections": [ 729 | { 730 | "data": { 731 | "hello": "hello" 732 | }, 733 | "node": 550, 734 | "output": "trigger" 735 | } 736 | ] 737 | } 738 | }, 739 | "outputs": { 740 | "output": { 741 | "connections": [] 742 | }, 743 | "trigger": { 744 | "connections": [] 745 | } 746 | }, 747 | "position": [ 748 | 1216, 749 | 176 750 | ] 751 | } 752 | }, 753 | "comments": [ 754 | { 755 | "text": "handle user input", 756 | "type": "frame", 757 | "links": [ 758 | 525, 759 | 232 760 | ], 761 | "width": 604, 762 | "height": 570, 763 | "position": [ 764 | -1251.5866988382681, 765 | -216.74768929596507 766 | ] 767 | }, 768 | { 769 | "text": "create a new task objective", 770 | "type": "frame", 771 | "links": [ 772 | 544, 773 | 3246, 774 | 497 775 | ], 776 | "width": 620, 777 | "height": 318, 778 | "position": [ 779 | 133.86867965023475, 780 | -223.59571521276234 781 | ] 782 | }, 783 | { 784 | "text": "let the user know the task has been started, and what the objective is", 785 | "type": "frame", 786 | "links": [ 787 | 548, 788 | 2552, 789 | 550 790 | ], 791 | "width": 620, 792 | "height": 282, 793 | "position": [ 794 | 862.7124123319165, 795 | -193.9995427950339 796 | ] 797 | } 798 | ] 799 | } 800 | } -------------------------------------------------------------------------------- /spells/ELIZA_MODULE_Analysis.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "2039a5d3-0ac5-4d26-9990-7ecb3da535c6", 3 | "name": "ELIZA_MODULE_Analysis", 4 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 5 | "hash": "82c9e0e6be0ab29359d3305e54b9cbb7", 6 | "createdAt": "1686210970868", 7 | "updatedAt": "1687072806728", 8 | "graph": { 9 | "id": "demo@0.1.0", 10 | "nodes": { 11 | "232": { 12 | "id": 232, 13 | "data": { 14 | "name": "Input - Default", 15 | "text": { 16 | "id": "2eb64348-adee-4118-bcca-19697ca3a16a", 17 | "inputs": { 18 | "Input - Default": { 19 | "type": "playtest", 20 | "client": "playtest", 21 | "sender": "playtestSender", 22 | "agentId": "preview", 23 | "channel": "playtest", 24 | "content": "testing", 25 | "entities": [ 26 | "playtestSender", 27 | "Agent" 28 | ], 29 | "observer": "Agent", 30 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 31 | "channelType": "playtest" 32 | } 33 | }, 34 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 35 | "spellName": "Starter", 36 | "publicVariables": "[]" 37 | }, 38 | "isInput": true, 39 | "outputs": [], 40 | "success": false, 41 | "useData": true, 42 | "inputName": "Default", 43 | "inputType": "Default", 44 | "socketKey": "9d61118c-3c5a-4379-9dae-41965e56207f", 45 | "useDefault": false, 46 | "useTrigger": true, 47 | "dataControls": { 48 | "useData": { 49 | "expanded": true 50 | }, 51 | "inputName": { 52 | "expanded": true 53 | }, 54 | "inputType": { 55 | "expanded": true 56 | }, 57 | "useTrigger": { 58 | "expanded": true 59 | } 60 | }, 61 | "defaultValue": "Hello world", 62 | "playtestToggle": { 63 | "outputs": [], 64 | "receivePlaytest": false 65 | } 66 | }, 67 | "name": "Input", 68 | "inputs": {}, 69 | "outputs": { 70 | "output": { 71 | "connections": [ 72 | { 73 | "data": { 74 | "hello": "hello" 75 | }, 76 | "node": 525, 77 | "input": "event" 78 | }, 79 | { 80 | "data": { 81 | "hello": "hello" 82 | }, 83 | "node": 3612, 84 | "input": "event" 85 | }, 86 | { 87 | "data": { 88 | "hello": "hello" 89 | }, 90 | "node": 5006, 91 | "input": "event" 92 | }, 93 | { 94 | "data": { 95 | "hello": "hello" 96 | }, 97 | "node": 5004, 98 | "input": "event" 99 | } 100 | ] 101 | }, 102 | "trigger": { 103 | "connections": [ 104 | { 105 | "data": { 106 | "hello": "hello" 107 | }, 108 | "node": 525, 109 | "input": "trigger" 110 | } 111 | ] 112 | } 113 | }, 114 | "position": [ 115 | -1168, 116 | -16 117 | ] 118 | }, 119 | "525": { 120 | "id": 525, 121 | "data": { 122 | "success": false, 123 | "socketKey": "d2fad911-891f-4dd0-a9dd-80a74b62c910" 124 | }, 125 | "name": "Event Destructure", 126 | "inputs": { 127 | "event": { 128 | "connections": [ 129 | { 130 | "data": { 131 | "hello": "hello" 132 | }, 133 | "node": 232, 134 | "output": "output" 135 | } 136 | ] 137 | }, 138 | "trigger": { 139 | "connections": [ 140 | { 141 | "data": { 142 | "hello": "hello" 143 | }, 144 | "node": 232, 145 | "output": "trigger" 146 | } 147 | ] 148 | } 149 | }, 150 | "outputs": { 151 | "client": { 152 | "connections": [] 153 | }, 154 | "sender": { 155 | "connections": [] 156 | }, 157 | "agentId": { 158 | "connections": [] 159 | }, 160 | "channel": { 161 | "connections": [] 162 | }, 163 | "content": { 164 | "connections": [ 165 | { 166 | "data": { 167 | "hello": "hello" 168 | }, 169 | "node": 3407, 170 | "input": "input" 171 | }, 172 | { 173 | "data": { 174 | "hello": "hello" 175 | }, 176 | "node": 5005, 177 | "input": "input" 178 | } 179 | ] 180 | }, 181 | "rawData": { 182 | "connections": [] 183 | }, 184 | "trigger": { 185 | "connections": [ 186 | { 187 | "data": { 188 | "hello": "hello" 189 | }, 190 | "node": 3407, 191 | "input": "trigger" 192 | } 193 | ] 194 | }, 195 | "entities": { 196 | "connections": [] 197 | }, 198 | "observer": { 199 | "connections": [] 200 | }, 201 | "connector": { 202 | "connections": [] 203 | }, 204 | "embedding": { 205 | "connections": [] 206 | }, 207 | "projectId": { 208 | "connections": [] 209 | }, 210 | "channelType": { 211 | "connections": [] 212 | } 213 | }, 214 | "position": [ 215 | -880, 216 | -16 217 | ] 218 | }, 219 | "717": { 220 | "id": 717, 221 | "data": { 222 | "name": "Output - Default", 223 | "success": false, 224 | "isOutput": true, 225 | "socketKey": "9630bdc7-6385-438c-8e54-075cafecc40f", 226 | "sendToPlaytest": true 227 | }, 228 | "name": "Output", 229 | "inputs": { 230 | "event": { 231 | "connections": [] 232 | }, 233 | "input": { 234 | "connections": [ 235 | { 236 | "data": { 237 | "hello": "hello" 238 | }, 239 | "node": 719, 240 | "output": "prompt" 241 | }, 242 | { 243 | "data": { 244 | "hello": "hello" 245 | }, 246 | "node": 5009, 247 | "output": "prompt" 248 | } 249 | ] 250 | }, 251 | "trigger": { 252 | "connections": [ 253 | { 254 | "data": { 255 | "hello": "hello" 256 | }, 257 | "node": 719, 258 | "output": "trigger" 259 | }, 260 | { 261 | "data": { 262 | "hello": "hello" 263 | }, 264 | "node": 5009, 265 | "output": "trigger" 266 | } 267 | ] 268 | } 269 | }, 270 | "outputs": { 271 | "output": { 272 | "connections": [] 273 | }, 274 | "trigger": { 275 | "connections": [] 276 | } 277 | }, 278 | "position": [ 279 | 1168, 280 | 176 281 | ] 282 | }, 283 | "719": { 284 | "id": 719, 285 | "data": { 286 | "inputs": [], 287 | "fewshot": "Analysis mode activated.", 288 | "success": false, 289 | "socketKey": null, 290 | "dataControls": { 291 | "inputs": { 292 | "expanded": true 293 | }, 294 | "fewshot": { 295 | "expanded": true 296 | } 297 | } 298 | }, 299 | "name": "Text Template", 300 | "inputs": { 301 | "trigger": { 302 | "connections": [ 303 | { 304 | "data": { 305 | "hello": "hello" 306 | }, 307 | "node": 5004, 308 | "output": "trigger" 309 | } 310 | ] 311 | } 312 | }, 313 | "outputs": { 314 | "prompt": { 315 | "connections": [ 316 | { 317 | "data": { 318 | "hello": "hello" 319 | }, 320 | "node": 717, 321 | "input": "input" 322 | }, 323 | { 324 | "data": { 325 | "hello": "hello" 326 | }, 327 | "node": 3612, 328 | "input": "input" 329 | } 330 | ] 331 | }, 332 | "trigger": { 333 | "connections": [ 334 | { 335 | "data": { 336 | "hello": "hello" 337 | }, 338 | "node": 717, 339 | "input": "trigger" 340 | }, 341 | { 342 | "data": { 343 | "hello": "hello" 344 | }, 345 | "node": 3612, 346 | "input": "trigger" 347 | } 348 | ] 349 | } 350 | }, 351 | "position": [ 352 | 528, 353 | 48 354 | ] 355 | }, 356 | "3407": { 357 | "id": 3407, 358 | "data": { 359 | "name": "Contains /analysis", 360 | "success": false, 361 | "socketKey": null, 362 | "matchAnyString": "", 363 | "stringMaxLength": "10", 364 | "stringMinLength": "5", 365 | "matchBeginningString": "/analysis" 366 | }, 367 | "name": "Text Rule Matcher", 368 | "inputs": { 369 | "input": { 370 | "connections": [ 371 | { 372 | "data": { 373 | "hello": "hello" 374 | }, 375 | "node": 525, 376 | "output": "content" 377 | } 378 | ] 379 | }, 380 | "trigger": { 381 | "connections": [ 382 | { 383 | "data": { 384 | "hello": "hello" 385 | }, 386 | "node": 525, 387 | "output": "trigger" 388 | } 389 | ] 390 | }, 391 | "matchAny": { 392 | "connections": [] 393 | }, 394 | "matchEnd": { 395 | "connections": [] 396 | }, 397 | "matchBeginning": { 398 | "connections": [] 399 | } 400 | }, 401 | "outputs": { 402 | "true": { 403 | "connections": [ 404 | { 405 | "data": { 406 | "hello": "hello" 407 | }, 408 | "node": 5004, 409 | "input": "trigger" 410 | } 411 | ] 412 | }, 413 | "false": { 414 | "connections": [ 415 | { 416 | "data": { 417 | "hello": "hello" 418 | }, 419 | "node": 5005, 420 | "input": "trigger" 421 | } 422 | ] 423 | } 424 | }, 425 | "position": [ 426 | -464, 427 | -384 428 | ] 429 | }, 430 | "3612": { 431 | "id": 3612, 432 | "data": { 433 | "success": false, 434 | "socketKey": "ebdfc111-c544-4943-8e3a-6bd071d58a11", 435 | "sendToPlaytest": true 436 | }, 437 | "name": "Respond", 438 | "inputs": { 439 | "event": { 440 | "connections": [ 441 | { 442 | "data": { 443 | "hello": "hello" 444 | }, 445 | "node": 232, 446 | "output": "output" 447 | } 448 | ] 449 | }, 450 | "input": { 451 | "connections": [ 452 | { 453 | "data": { 454 | "hello": "hello" 455 | }, 456 | "node": 719, 457 | "output": "prompt" 458 | }, 459 | { 460 | "data": { 461 | "hello": "hello" 462 | }, 463 | "node": 5009, 464 | "output": "prompt" 465 | } 466 | ] 467 | }, 468 | "trigger": { 469 | "connections": [ 470 | { 471 | "data": { 472 | "hello": "hello" 473 | }, 474 | "node": 719, 475 | "output": "trigger" 476 | }, 477 | { 478 | "data": { 479 | "hello": "hello" 480 | }, 481 | "node": 5009, 482 | "output": "trigger" 483 | } 484 | ] 485 | } 486 | }, 487 | "outputs": { 488 | "trigger": { 489 | "connections": [] 490 | } 491 | }, 492 | "position": [ 493 | 1168, 494 | -16 495 | ] 496 | }, 497 | "5004": { 498 | "id": 5004, 499 | "data": { 500 | "name": "Store analysis on", 501 | "type": "analysis", 502 | "success": false, 503 | "socketKey": null 504 | }, 505 | "name": "Store Event", 506 | "inputs": { 507 | "type": { 508 | "connections": [] 509 | }, 510 | "event": { 511 | "connections": [ 512 | { 513 | "data": { 514 | "hello": "hello" 515 | }, 516 | "node": 232, 517 | "output": "output" 518 | } 519 | ] 520 | }, 521 | "sender": { 522 | "connections": [] 523 | }, 524 | "content": { 525 | "connections": [ 526 | { 527 | "data": { 528 | "hello": "hello" 529 | }, 530 | "node": 5007, 531 | "output": "output" 532 | } 533 | ] 534 | }, 535 | "trigger": { 536 | "connections": [ 537 | { 538 | "data": { 539 | "hello": "hello" 540 | }, 541 | "node": 3407, 542 | "output": "true" 543 | } 544 | ] 545 | }, 546 | "embedding": { 547 | "connections": [] 548 | } 549 | }, 550 | "outputs": { 551 | "trigger": { 552 | "connections": [ 553 | { 554 | "data": { 555 | "hello": "hello" 556 | }, 557 | "node": 719, 558 | "input": "trigger" 559 | } 560 | ] 561 | } 562 | }, 563 | "position": [ 564 | 240, 565 | 0 566 | ] 567 | }, 568 | "5005": { 569 | "id": 5005, 570 | "data": { 571 | "name": "Contains /asyouwere", 572 | "success": false, 573 | "socketKey": null, 574 | "matchAnyString": "", 575 | "stringMaxLength": "20", 576 | "stringMinLength": "5", 577 | "matchBeginningString": "/asyouwere, as you were" 578 | }, 579 | "name": "Text Rule Matcher", 580 | "inputs": { 581 | "input": { 582 | "connections": [ 583 | { 584 | "data": { 585 | "hello": "hello" 586 | }, 587 | "node": 525, 588 | "output": "content" 589 | } 590 | ] 591 | }, 592 | "trigger": { 593 | "connections": [ 594 | { 595 | "data": { 596 | "hello": "hello" 597 | }, 598 | "node": 3407, 599 | "output": "false" 600 | } 601 | ] 602 | }, 603 | "matchAny": { 604 | "connections": [] 605 | }, 606 | "matchEnd": { 607 | "connections": [] 608 | }, 609 | "matchBeginning": { 610 | "connections": [] 611 | } 612 | }, 613 | "outputs": { 614 | "true": { 615 | "connections": [ 616 | { 617 | "data": { 618 | "hello": "hello" 619 | }, 620 | "node": 5006, 621 | "input": "trigger" 622 | } 623 | ] 624 | }, 625 | "false": { 626 | "connections": [] 627 | } 628 | }, 629 | "position": [ 630 | -480, 631 | -16 632 | ] 633 | }, 634 | "5006": { 635 | "id": 5006, 636 | "data": { 637 | "name": "Store analysis off", 638 | "type": "analysis", 639 | "success": false, 640 | "socketKey": null 641 | }, 642 | "name": "Store Event", 643 | "inputs": { 644 | "type": { 645 | "connections": [] 646 | }, 647 | "event": { 648 | "connections": [ 649 | { 650 | "data": { 651 | "hello": "hello" 652 | }, 653 | "node": 232, 654 | "output": "output" 655 | } 656 | ] 657 | }, 658 | "sender": { 659 | "connections": [] 660 | }, 661 | "content": { 662 | "connections": [ 663 | { 664 | "data": { 665 | "hello": "hello" 666 | }, 667 | "node": 5008, 668 | "output": "output" 669 | } 670 | ] 671 | }, 672 | "trigger": { 673 | "connections": [ 674 | { 675 | "data": { 676 | "hello": "hello" 677 | }, 678 | "node": 5005, 679 | "output": "true" 680 | } 681 | ] 682 | }, 683 | "embedding": { 684 | "connections": [] 685 | } 686 | }, 687 | "outputs": { 688 | "trigger": { 689 | "connections": [ 690 | { 691 | "data": { 692 | "hello": "hello" 693 | }, 694 | "node": 5009, 695 | "input": "trigger" 696 | } 697 | ] 698 | } 699 | }, 700 | "position": [ 701 | -80, 702 | 80 703 | ] 704 | }, 705 | "5007": { 706 | "id": 5007, 707 | "data": { 708 | "name": "true", 709 | "fewshot": "true", 710 | "success": false, 711 | "isPublic": false, 712 | "socketKey": null 713 | }, 714 | "name": "Text Variable", 715 | "inputs": {}, 716 | "outputs": { 717 | "output": { 718 | "connections": [ 719 | { 720 | "data": { 721 | "hello": "hello" 722 | }, 723 | "node": 5004, 724 | "input": "content" 725 | } 726 | ] 727 | } 728 | }, 729 | "position": [ 730 | -464, 731 | 400 732 | ] 733 | }, 734 | "5008": { 735 | "id": 5008, 736 | "data": { 737 | "name": "false", 738 | "fewshot": "false", 739 | "success": false, 740 | "isPublic": false, 741 | "socketKey": null 742 | }, 743 | "name": "Text Variable", 744 | "inputs": {}, 745 | "outputs": { 746 | "output": { 747 | "connections": [ 748 | { 749 | "data": { 750 | "hello": "hello" 751 | }, 752 | "node": 5006, 753 | "input": "content" 754 | } 755 | ] 756 | } 757 | }, 758 | "position": [ 759 | -160, 760 | -224 761 | ] 762 | }, 763 | "5009": { 764 | "id": 5009, 765 | "data": { 766 | "inputs": [], 767 | "fewshot": "Analysis mode deactivated.", 768 | "success": false, 769 | "socketKey": null, 770 | "dataControls": { 771 | "inputs": { 772 | "expanded": true 773 | }, 774 | "fewshot": { 775 | "expanded": true 776 | } 777 | } 778 | }, 779 | "name": "Text Template", 780 | "inputs": { 781 | "trigger": { 782 | "connections": [ 783 | { 784 | "data": { 785 | "hello": "hello" 786 | }, 787 | "node": 5006, 788 | "output": "trigger" 789 | } 790 | ] 791 | } 792 | }, 793 | "outputs": { 794 | "prompt": { 795 | "connections": [ 796 | { 797 | "data": { 798 | "hello": "hello" 799 | }, 800 | "node": 3612, 801 | "input": "input" 802 | }, 803 | { 804 | "data": { 805 | "hello": "hello" 806 | }, 807 | "node": 717, 808 | "input": "input" 809 | } 810 | ] 811 | }, 812 | "trigger": { 813 | "connections": [ 814 | { 815 | "data": { 816 | "hello": "hello" 817 | }, 818 | "node": 3612, 819 | "input": "trigger" 820 | }, 821 | { 822 | "data": { 823 | "hello": "hello" 824 | }, 825 | "node": 717, 826 | "input": "trigger" 827 | } 828 | ] 829 | } 830 | }, 831 | "position": [ 832 | 528, 833 | 192 834 | ] 835 | } 836 | }, 837 | "comments": [ 838 | { 839 | "text": "handle user input", 840 | "type": "frame", 841 | "links": [ 842 | 525, 843 | 232 844 | ], 845 | "width": 604, 846 | "height": 570, 847 | "position": [ 848 | -1214.9551584770002, 849 | -68.89224126468191 850 | ] 851 | }, 852 | { 853 | "text": "add skill", 854 | "type": "frame", 855 | "links": [ 856 | 667, 857 | 3613, 858 | 5009, 859 | 719, 860 | 717, 861 | 3612, 862 | 5006, 863 | 5004 864 | ], 865 | "width": 1580, 866 | "height": 334, 867 | "position": [ 868 | -188.23888818334984, 869 | -54.482109295084854 870 | ] 871 | }, 872 | { 873 | "text": "debug handlers", 874 | "type": "inline", 875 | "links": [], 876 | "position": [ 877 | -280.21129668788217, 878 | -100.57057020607203 879 | ] 880 | } 881 | ] 882 | } 883 | } -------------------------------------------------------------------------------- /spells/ELIZA_MODULE_CheckEmbedding.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "3a9b784f-f1db-401c-80fc-2722897f7d7f", 3 | "name": "ELIZA_MODULE_CheckEmbedding", 4 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 5 | "hash": "6e9d86bdcd818e920540a82c09b5d82c", 6 | "createdAt": "1686210970868", 7 | "updatedAt": "1686955079642", 8 | "graph": { 9 | "id": "demo@0.1.0", 10 | "nodes": { 11 | "232": { 12 | "id": 232, 13 | "data": { 14 | "name": "Input - Default", 15 | "text": { 16 | "id": "2eb64348-adee-4118-bcca-19697ca3a16a", 17 | "inputs": {}, 18 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 19 | "spellName": "Starter", 20 | "publicVariables": "[]" 21 | }, 22 | "isInput": true, 23 | "outputs": [], 24 | "success": false, 25 | "useData": true, 26 | "inputName": "Default", 27 | "inputType": "Default", 28 | "socketKey": "9d61118c-3c5a-4379-9dae-41965e56207f", 29 | "useDefault": false, 30 | "dataControls": { 31 | "inputType": { 32 | "expanded": true 33 | }, 34 | "useDefault": { 35 | "expanded": true 36 | }, 37 | "defaultValue": { 38 | "expanded": true 39 | } 40 | }, 41 | "defaultValue": "Hello world", 42 | "playtestToggle": { 43 | "outputs": [], 44 | "receivePlaytest": false 45 | } 46 | }, 47 | "name": "Input", 48 | "inputs": {}, 49 | "outputs": { 50 | "output": { 51 | "connections": [ 52 | { 53 | "data": { 54 | "hello": "hello" 55 | }, 56 | "node": 494, 57 | "input": "event" 58 | }, 59 | { 60 | "data": { 61 | "hello": "hello" 62 | }, 63 | "node": 5271, 64 | "input": "object" 65 | } 66 | ] 67 | }, 68 | "trigger": { 69 | "connections": [ 70 | { 71 | "data": { 72 | "hello": "hello" 73 | }, 74 | "node": 494, 75 | "input": "trigger" 76 | } 77 | ] 78 | } 79 | }, 80 | "position": [ 81 | -672, 82 | 16 83 | ] 84 | }, 85 | "233": { 86 | "id": 233, 87 | "data": { 88 | "name": "Output - Default", 89 | "error": false, 90 | "success": false, 91 | "isOutput": true, 92 | "socketKey": "67ad9f6a-58c8-4078-8302-561aa5a300ef", 93 | "outputType": "Default", 94 | "dataControls": { 95 | "name": { 96 | "expanded": true 97 | } 98 | }, 99 | "sendToPlaytest": true 100 | }, 101 | "name": "Output", 102 | "inputs": { 103 | "event": { 104 | "connections": [] 105 | }, 106 | "input": { 107 | "connections": [ 108 | { 109 | "data": { 110 | "hello": "hello" 111 | }, 112 | "node": 5271, 113 | "output": "object" 114 | } 115 | ] 116 | }, 117 | "trigger": { 118 | "connections": [ 119 | { 120 | "data": { 121 | "hello": "hello" 122 | }, 123 | "node": 5271, 124 | "output": "trigger" 125 | } 126 | ] 127 | } 128 | }, 129 | "outputs": { 130 | "output": { 131 | "connections": [] 132 | }, 133 | "trigger": { 134 | "connections": [] 135 | } 136 | }, 137 | "position": [ 138 | 2128, 139 | -48 140 | ] 141 | }, 142 | "494": { 143 | "id": 494, 144 | "data": { 145 | "success": false, 146 | "socketKey": "bbd9c07c-7bcc-454a-b5fe-cc6fd63f6a94" 147 | }, 148 | "name": "Event Destructure", 149 | "inputs": { 150 | "event": { 151 | "connections": [ 152 | { 153 | "data": { 154 | "hello": "hello" 155 | }, 156 | "node": 232, 157 | "output": "output" 158 | } 159 | ] 160 | }, 161 | "trigger": { 162 | "connections": [ 163 | { 164 | "data": { 165 | "hello": "hello" 166 | }, 167 | "node": 232, 168 | "output": "trigger" 169 | } 170 | ] 171 | } 172 | }, 173 | "outputs": { 174 | "client": { 175 | "connections": [] 176 | }, 177 | "sender": { 178 | "connections": [] 179 | }, 180 | "agentId": { 181 | "connections": [] 182 | }, 183 | "channel": { 184 | "connections": [] 185 | }, 186 | "content": { 187 | "connections": [ 188 | { 189 | "data": { 190 | "hello": "hello" 191 | }, 192 | "node": 5269, 193 | "input": "input" 194 | }, 195 | { 196 | "data": { 197 | "hello": "hello" 198 | }, 199 | "node": 7216, 200 | "input": "content" 201 | } 202 | ] 203 | }, 204 | "rawData": { 205 | "connections": [] 206 | }, 207 | "trigger": { 208 | "connections": [ 209 | { 210 | "data": { 211 | "hello": "hello" 212 | }, 213 | "node": 5267, 214 | "input": "trigger" 215 | } 216 | ] 217 | }, 218 | "entities": { 219 | "connections": [] 220 | }, 221 | "observer": { 222 | "connections": [] 223 | }, 224 | "connector": { 225 | "connections": [] 226 | }, 227 | "embedding": { 228 | "connections": [ 229 | { 230 | "data": { 231 | "hello": "hello" 232 | }, 233 | "node": 5267, 234 | "input": "input" 235 | }, 236 | { 237 | "data": { 238 | "hello": "hello" 239 | }, 240 | "node": 5270, 241 | "input": "has data" 242 | } 243 | ] 244 | }, 245 | "projectId": { 246 | "connections": [] 247 | }, 248 | "channelType": { 249 | "connections": [] 250 | } 251 | }, 252 | "position": [ 253 | -352, 254 | -32 255 | ] 256 | }, 257 | "5267": { 258 | "id": 5267, 259 | "data": { 260 | "success": false 261 | }, 262 | "name": "Is Null Or Undefined", 263 | "inputs": { 264 | "input": { 265 | "connections": [ 266 | { 267 | "data": { 268 | "hello": "hello" 269 | }, 270 | "node": 494, 271 | "output": "embedding" 272 | } 273 | ] 274 | }, 275 | "trigger": { 276 | "connections": [ 277 | { 278 | "data": { 279 | "hello": "hello" 280 | }, 281 | "node": 494, 282 | "output": "trigger" 283 | } 284 | ] 285 | } 286 | }, 287 | "outputs": { 288 | "true": { 289 | "connections": [ 290 | { 291 | "data": { 292 | "hello": "hello" 293 | }, 294 | "node": 5269, 295 | "input": "trigger" 296 | } 297 | ] 298 | }, 299 | "false": { 300 | "connections": [ 301 | { 302 | "data": { 303 | "hello": "hello" 304 | }, 305 | "node": 5270, 306 | "input": "has trigger" 307 | } 308 | ] 309 | } 310 | }, 311 | "position": [ 312 | -32, 313 | -48 314 | ] 315 | }, 316 | "5269": { 317 | "id": 5269, 318 | "data": { 319 | "model": "embedding-gecko-001", 320 | "success": false 321 | }, 322 | "name": "Create Text Embedding", 323 | "inputs": { 324 | "input": { 325 | "connections": [ 326 | { 327 | "data": { 328 | "hello": "hello" 329 | }, 330 | "node": 494, 331 | "output": "content" 332 | } 333 | ] 334 | }, 335 | "trigger": { 336 | "connections": [ 337 | { 338 | "data": { 339 | "hello": "hello" 340 | }, 341 | "node": 5267, 342 | "output": "true" 343 | } 344 | ] 345 | } 346 | }, 347 | "outputs": { 348 | "error": { 349 | "connections": [] 350 | }, 351 | "trigger": { 352 | "connections": [ 353 | { 354 | "data": { 355 | "hello": "hello" 356 | }, 357 | "node": 5270, 358 | "input": "create trigger" 359 | } 360 | ] 361 | }, 362 | "embedding": { 363 | "connections": [ 364 | { 365 | "data": { 366 | "hello": "hello" 367 | }, 368 | "node": 5270, 369 | "input": "create data" 370 | } 371 | ] 372 | } 373 | }, 374 | "position": [ 375 | 528, 376 | -304 377 | ] 378 | }, 379 | "5270": { 380 | "id": 5270, 381 | "data": { 382 | "inputs": [ 383 | { 384 | "name": "create trigger", 385 | "taskType": "option", 386 | "socketKey": "create trigger", 387 | "socketType": "triggerSocket", 388 | "connectionType": "input" 389 | }, 390 | { 391 | "name": "create data", 392 | "taskType": "output", 393 | "socketKey": "create data", 394 | "socketType": "anySocket", 395 | "connectionType": "input" 396 | }, 397 | { 398 | "name": "find trigger", 399 | "taskType": "option", 400 | "socketKey": "find trigger", 401 | "socketType": "triggerSocket", 402 | "connectionType": "input" 403 | }, 404 | { 405 | "name": "find data", 406 | "taskType": "output", 407 | "socketKey": "find data", 408 | "socketType": "anySocket", 409 | "connectionType": "input" 410 | }, 411 | { 412 | "name": "has trigger", 413 | "taskType": "option", 414 | "socketKey": "has trigger", 415 | "socketType": "triggerSocket", 416 | "connectionType": "input" 417 | }, 418 | { 419 | "name": "has data", 420 | "taskType": "output", 421 | "socketKey": "has data", 422 | "socketType": "anySocket", 423 | "connectionType": "input" 424 | } 425 | ], 426 | "success": false 427 | }, 428 | "name": "Exclusive Gate", 429 | "inputs": { 430 | "has data": { 431 | "connections": [ 432 | { 433 | "data": { 434 | "hello": "hello" 435 | }, 436 | "node": 494, 437 | "output": "embedding" 438 | } 439 | ] 440 | }, 441 | "find data": { 442 | "connections": [ 443 | { 444 | "data": { 445 | "hello": "hello" 446 | }, 447 | "node": 7216, 448 | "output": "embedding" 449 | } 450 | ] 451 | }, 452 | "create data": { 453 | "connections": [ 454 | { 455 | "data": { 456 | "hello": "hello" 457 | }, 458 | "node": 5269, 459 | "output": "embedding" 460 | } 461 | ] 462 | }, 463 | "has trigger": { 464 | "connections": [ 465 | { 466 | "data": { 467 | "hello": "hello" 468 | }, 469 | "node": 5267, 470 | "output": "false" 471 | } 472 | ] 473 | }, 474 | "find trigger": { 475 | "connections": [ 476 | { 477 | "data": { 478 | "hello": "hello" 479 | }, 480 | "node": 7216, 481 | "output": "success" 482 | } 483 | ] 484 | }, 485 | "create trigger": { 486 | "connections": [ 487 | { 488 | "data": { 489 | "hello": "hello" 490 | }, 491 | "node": 5269, 492 | "output": "trigger" 493 | } 494 | ] 495 | } 496 | }, 497 | "outputs": { 498 | "output": { 499 | "connections": [ 500 | { 501 | "data": { 502 | "hello": "hello" 503 | }, 504 | "node": 5271, 505 | "input": "embedding" 506 | } 507 | ] 508 | }, 509 | "trigger": { 510 | "connections": [ 511 | { 512 | "data": { 513 | "hello": "hello" 514 | }, 515 | "node": 5271, 516 | "input": "trigger" 517 | } 518 | ] 519 | } 520 | }, 521 | "position": [ 522 | 880, 523 | -96 524 | ] 525 | }, 526 | "5271": { 527 | "id": 5271, 528 | "data": { 529 | "name": "Compose Event", 530 | "inputs": [ 531 | { 532 | "name": "embedding", 533 | "taskType": "output", 534 | "socketKey": "embedding", 535 | "socketType": "anySocket", 536 | "connectionType": "input" 537 | } 538 | ], 539 | "success": false 540 | }, 541 | "name": "Merge Objects", 542 | "inputs": { 543 | "object": { 544 | "connections": [ 545 | { 546 | "data": { 547 | "hello": "hello" 548 | }, 549 | "node": 232, 550 | "output": "output" 551 | } 552 | ] 553 | }, 554 | "trigger": { 555 | "connections": [ 556 | { 557 | "data": { 558 | "hello": "hello" 559 | }, 560 | "node": 5270, 561 | "output": "trigger" 562 | } 563 | ] 564 | }, 565 | "embedding": { 566 | "connections": [ 567 | { 568 | "data": { 569 | "hello": "hello" 570 | }, 571 | "node": 5270, 572 | "output": "output" 573 | } 574 | ] 575 | } 576 | }, 577 | "outputs": { 578 | "object": { 579 | "connections": [ 580 | { 581 | "data": { 582 | "hello": "hello" 583 | }, 584 | "node": 233, 585 | "input": "input" 586 | }, 587 | { 588 | "data": { 589 | "hello": "hello" 590 | }, 591 | "node": 7236, 592 | "input": "input" 593 | } 594 | ] 595 | }, 596 | "trigger": { 597 | "connections": [ 598 | { 599 | "data": { 600 | "hello": "hello" 601 | }, 602 | "node": 233, 603 | "input": "trigger" 604 | } 605 | ] 606 | } 607 | }, 608 | "position": [ 609 | 1280, 610 | 96 611 | ] 612 | }, 613 | "7216": { 614 | "id": 7216, 615 | "data": { 616 | "success": false 617 | }, 618 | "name": "Find Text Embedding", 619 | "inputs": { 620 | "content": { 621 | "connections": [ 622 | { 623 | "data": { 624 | "hello": "hello" 625 | }, 626 | "node": 494, 627 | "output": "content" 628 | } 629 | ] 630 | }, 631 | "trigger": { 632 | "connections": [] 633 | } 634 | }, 635 | "outputs": { 636 | "failure": { 637 | "connections": [] 638 | }, 639 | "success": { 640 | "connections": [ 641 | { 642 | "data": { 643 | "hello": "hello" 644 | }, 645 | "node": 5270, 646 | "input": "find trigger" 647 | } 648 | ] 649 | }, 650 | "embedding": { 651 | "connections": [ 652 | { 653 | "data": { 654 | "hello": "hello" 655 | }, 656 | "node": 5270, 657 | "input": "find data" 658 | } 659 | ] 660 | } 661 | }, 662 | "position": [ 663 | 352, 664 | -144 665 | ] 666 | }, 667 | "7236": { 668 | "id": 7236, 669 | "data": { 670 | "success": false 671 | }, 672 | "name": "Cast", 673 | "inputs": { 674 | "input": { 675 | "connections": [ 676 | { 677 | "data": { 678 | "hello": "hello" 679 | }, 680 | "node": 5271, 681 | "output": "object" 682 | } 683 | ] 684 | } 685 | }, 686 | "outputs": { 687 | "output": { 688 | "connections": [] 689 | } 690 | }, 691 | "position": [ 692 | 1280, 693 | 272 694 | ] 695 | } 696 | }, 697 | "comments": [] 698 | } 699 | } -------------------------------------------------------------------------------- /spells/ELIZA_MODULE_GetAnalysisMode.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "2394e6a9-eabd-4d24-b8b9-6ef50c6c6496", 3 | "name": "ELIZA_MODULE_GetAnalysisMode", 4 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 5 | "hash": "24e488c4d6f8452b49ff4af3af3df1a8", 6 | "createdAt": "1686210970868", 7 | "updatedAt": "1686947673097", 8 | "graph": { 9 | "id": "demo@0.1.0", 10 | "nodes": { 11 | "232": { 12 | "id": 232, 13 | "data": { 14 | "name": "Input - Default", 15 | "isInput": true, 16 | "success": false, 17 | "useData": true, 18 | "inputName": "Default", 19 | "socketKey": "6e58ab08-a50e-450e-8512-095d1c99ae81" 20 | }, 21 | "name": "Input", 22 | "inputs": {}, 23 | "outputs": { 24 | "output": { 25 | "connections": [ 26 | { 27 | "data": { 28 | "hello": "hello" 29 | }, 30 | "node": 5049, 31 | "input": "event" 32 | } 33 | ] 34 | }, 35 | "trigger": { 36 | "connections": [ 37 | { 38 | "data": { 39 | "hello": "hello" 40 | }, 41 | "node": 5049, 42 | "input": "trigger" 43 | } 44 | ] 45 | } 46 | }, 47 | "position": [ 48 | -1344, 49 | 368 50 | ] 51 | }, 52 | "5049": { 53 | "id": 5049, 54 | "data": { 55 | "name": "analysis mode on?", 56 | "type": "analysis", 57 | "error": false, 58 | "success": false, 59 | "max_count": "1" 60 | }, 61 | "name": "Event Recall", 62 | "inputs": { 63 | "type": { 64 | "connections": [] 65 | }, 66 | "event": { 67 | "connections": [ 68 | { 69 | "data": { 70 | "hello": "hello" 71 | }, 72 | "node": 232, 73 | "output": "output" 74 | } 75 | ] 76 | }, 77 | "trigger": { 78 | "connections": [ 79 | { 80 | "data": { 81 | "hello": "hello" 82 | }, 83 | "node": 232, 84 | "output": "trigger" 85 | } 86 | ] 87 | }, 88 | "embedding": { 89 | "connections": [] 90 | } 91 | }, 92 | "outputs": { 93 | "events": { 94 | "connections": [ 95 | { 96 | "data": { 97 | "hello": "hello" 98 | }, 99 | "node": 5051, 100 | "input": "array" 101 | } 102 | ] 103 | }, 104 | "trigger": { 105 | "connections": [ 106 | { 107 | "data": { 108 | "hello": "hello" 109 | }, 110 | "node": 5051, 111 | "input": "trigger" 112 | } 113 | ] 114 | } 115 | }, 116 | "position": [ 117 | -1040, 118 | 368 119 | ] 120 | }, 121 | "5051": { 122 | "id": 5051, 123 | "data": { 124 | "element": 0, 125 | "success": false 126 | }, 127 | "name": "Get Value From Array", 128 | "inputs": { 129 | "array": { 130 | "connections": [ 131 | { 132 | "data": { 133 | "hello": "hello" 134 | }, 135 | "node": 5049, 136 | "output": "events" 137 | } 138 | ] 139 | }, 140 | "trigger": { 141 | "connections": [ 142 | { 143 | "data": { 144 | "hello": "hello" 145 | }, 146 | "node": 5049, 147 | "output": "trigger" 148 | } 149 | ] 150 | } 151 | }, 152 | "outputs": { 153 | "output": { 154 | "connections": [ 155 | { 156 | "data": { 157 | "hello": "hello" 158 | }, 159 | "node": 5052, 160 | "input": "object" 161 | }, 162 | { 163 | "data": { 164 | "hello": "hello" 165 | }, 166 | "node": 5054, 167 | "input": "input" 168 | } 169 | ] 170 | }, 171 | "trigger": { 172 | "connections": [ 173 | { 174 | "data": { 175 | "hello": "hello" 176 | }, 177 | "node": 5054, 178 | "input": "trigger" 179 | } 180 | ] 181 | } 182 | }, 183 | "position": [ 184 | -1040, 185 | 608 186 | ] 187 | }, 188 | "5052": { 189 | "id": 5052, 190 | "data": { 191 | "outputs": [ 192 | { 193 | "name": "content", 194 | "taskType": "output", 195 | "socketKey": "content", 196 | "socketType": "anySocket", 197 | "connectionType": "output" 198 | } 199 | ] 200 | }, 201 | "name": "Get Values From Object", 202 | "inputs": { 203 | "object": { 204 | "connections": [ 205 | { 206 | "data": { 207 | "hello": "hello" 208 | }, 209 | "node": 5051, 210 | "output": "output" 211 | } 212 | ] 213 | }, 214 | "trigger": { 215 | "connections": [ 216 | { 217 | "data": { 218 | "hello": "hello" 219 | }, 220 | "node": 5054, 221 | "output": "false" 222 | } 223 | ] 224 | } 225 | }, 226 | "outputs": { 227 | "content": { 228 | "connections": [ 229 | { 230 | "data": { 231 | "hello": "hello" 232 | }, 233 | "node": 5056, 234 | "input": "input" 235 | } 236 | ] 237 | }, 238 | "trigger": { 239 | "connections": [ 240 | { 241 | "data": { 242 | "hello": "hello" 243 | }, 244 | "node": 5056, 245 | "input": "trigger" 246 | } 247 | ] 248 | } 249 | }, 250 | "position": [ 251 | -1040, 252 | 976 253 | ] 254 | }, 255 | "5054": { 256 | "id": 5054, 257 | "data": { 258 | "success": false 259 | }, 260 | "name": "Is Null Or Undefined", 261 | "inputs": { 262 | "input": { 263 | "connections": [ 264 | { 265 | "data": { 266 | "hello": "hello" 267 | }, 268 | "node": 5051, 269 | "output": "output" 270 | } 271 | ] 272 | }, 273 | "trigger": { 274 | "connections": [ 275 | { 276 | "data": { 277 | "hello": "hello" 278 | }, 279 | "node": 5051, 280 | "output": "trigger" 281 | } 282 | ] 283 | } 284 | }, 285 | "outputs": { 286 | "true": { 287 | "connections": [ 288 | { 289 | "data": { 290 | "hello": "hello" 291 | }, 292 | "node": 5061, 293 | "input": "false trigger" 294 | } 295 | ] 296 | }, 297 | "false": { 298 | "connections": [ 299 | { 300 | "data": { 301 | "hello": "hello" 302 | }, 303 | "node": 5052, 304 | "input": "trigger" 305 | } 306 | ] 307 | } 308 | }, 309 | "position": [ 310 | -1056, 311 | 784 312 | ] 313 | }, 314 | "5056": { 315 | "id": 5056, 316 | "data": { 317 | "name": "is true or on", 318 | "stringMaxLength": 0, 319 | "stringMinLength": 0, 320 | "matchBeginningString": "true, on" 321 | }, 322 | "name": "Text Rule Matcher", 323 | "inputs": { 324 | "input": { 325 | "connections": [ 326 | { 327 | "data": { 328 | "hello": "hello" 329 | }, 330 | "node": 5052, 331 | "output": "content" 332 | } 333 | ] 334 | }, 335 | "trigger": { 336 | "connections": [ 337 | { 338 | "data": { 339 | "hello": "hello" 340 | }, 341 | "node": 5052, 342 | "output": "trigger" 343 | } 344 | ] 345 | }, 346 | "matchAny": { 347 | "connections": [] 348 | }, 349 | "matchEnd": { 350 | "connections": [] 351 | }, 352 | "matchBeginning": { 353 | "connections": [] 354 | } 355 | }, 356 | "outputs": { 357 | "true": { 358 | "connections": [ 359 | { 360 | "data": { 361 | "hello": "hello" 362 | }, 363 | "node": 5061, 364 | "input": "true trigger" 365 | } 366 | ] 367 | }, 368 | "false": { 369 | "connections": [ 370 | { 371 | "data": { 372 | "hello": "hello" 373 | }, 374 | "node": 5061, 375 | "input": "false trigger" 376 | } 377 | ] 378 | } 379 | }, 380 | "position": [ 381 | -720, 382 | 512 383 | ] 384 | }, 385 | "5059": { 386 | "id": 5059, 387 | "data": { 388 | "_var": true, 389 | "name": "true", 390 | "isPublic": false, 391 | "socketKey": null 392 | }, 393 | "name": "Boolean Variable", 394 | "inputs": {}, 395 | "outputs": { 396 | "output": { 397 | "connections": [ 398 | { 399 | "data": { 400 | "hello": "hello" 401 | }, 402 | "node": 5061, 403 | "input": "true data" 404 | } 405 | ] 406 | } 407 | }, 408 | "position": [ 409 | -720, 410 | 896 411 | ] 412 | }, 413 | "5060": { 414 | "id": 5060, 415 | "data": { 416 | "_var": false, 417 | "name": "false", 418 | "isPublic": false, 419 | "socketKey": null 420 | }, 421 | "name": "Boolean Variable", 422 | "inputs": {}, 423 | "outputs": { 424 | "output": { 425 | "connections": [ 426 | { 427 | "data": { 428 | "hello": "hello" 429 | }, 430 | "node": 5061, 431 | "input": "false data" 432 | } 433 | ] 434 | } 435 | }, 436 | "position": [ 437 | -720, 438 | 1040 439 | ] 440 | }, 441 | "5061": { 442 | "id": 5061, 443 | "data": { 444 | "inputs": [ 445 | { 446 | "name": "true trigger", 447 | "taskType": "option", 448 | "socketKey": "true trigger", 449 | "socketType": "triggerSocket", 450 | "connectionType": "input" 451 | }, 452 | { 453 | "name": "true data", 454 | "taskType": "output", 455 | "socketKey": "true data", 456 | "socketType": "anySocket", 457 | "connectionType": "input" 458 | }, 459 | { 460 | "name": "false trigger", 461 | "taskType": "option", 462 | "socketKey": "false trigger", 463 | "socketType": "triggerSocket", 464 | "connectionType": "input" 465 | }, 466 | { 467 | "name": "false data", 468 | "taskType": "output", 469 | "socketKey": "false data", 470 | "socketType": "anySocket", 471 | "connectionType": "input" 472 | } 473 | ] 474 | }, 475 | "name": "Exclusive Gate", 476 | "inputs": { 477 | "true data": { 478 | "connections": [ 479 | { 480 | "data": { 481 | "hello": "hello" 482 | }, 483 | "node": 5059, 484 | "output": "output" 485 | } 486 | ] 487 | }, 488 | "false data": { 489 | "connections": [ 490 | { 491 | "data": { 492 | "hello": "hello" 493 | }, 494 | "node": 5060, 495 | "output": "output" 496 | } 497 | ] 498 | }, 499 | "true trigger": { 500 | "connections": [ 501 | { 502 | "data": { 503 | "hello": "hello" 504 | }, 505 | "node": 5056, 506 | "output": "true" 507 | } 508 | ] 509 | }, 510 | "false trigger": { 511 | "connections": [ 512 | { 513 | "data": { 514 | "hello": "hello" 515 | }, 516 | "node": 5056, 517 | "output": "false" 518 | }, 519 | { 520 | "data": { 521 | "hello": "hello" 522 | }, 523 | "node": 5054, 524 | "output": "true" 525 | } 526 | ] 527 | } 528 | }, 529 | "outputs": { 530 | "output": { 531 | "connections": [ 532 | { 533 | "data": { 534 | "hello": "hello" 535 | }, 536 | "node": 5062, 537 | "input": "input" 538 | } 539 | ] 540 | }, 541 | "trigger": { 542 | "connections": [ 543 | { 544 | "data": { 545 | "hello": "hello" 546 | }, 547 | "node": 5062, 548 | "input": "trigger" 549 | } 550 | ] 551 | } 552 | }, 553 | "position": [ 554 | -416, 555 | 576 556 | ] 557 | }, 558 | "5062": { 559 | "id": 5062, 560 | "data": { 561 | "name": "Output - Default", 562 | "isOutput": true, 563 | "socketKey": "f9906726-14b7-4a05-be3d-712a0a4cdaad", 564 | "outputType": "Default", 565 | "sendToPlaytest": true 566 | }, 567 | "name": "Output", 568 | "inputs": { 569 | "event": { 570 | "connections": [] 571 | }, 572 | "input": { 573 | "connections": [ 574 | { 575 | "data": { 576 | "hello": "hello" 577 | }, 578 | "node": 5061, 579 | "output": "output" 580 | } 581 | ] 582 | }, 583 | "trigger": { 584 | "connections": [ 585 | { 586 | "data": { 587 | "hello": "hello" 588 | }, 589 | "node": 5061, 590 | "output": "trigger" 591 | } 592 | ] 593 | } 594 | }, 595 | "outputs": { 596 | "output": { 597 | "connections": [] 598 | }, 599 | "trigger": { 600 | "connections": [] 601 | } 602 | }, 603 | "position": [ 604 | -112, 605 | 592 606 | ] 607 | } 608 | }, 609 | "comments": [] 610 | } 611 | } -------------------------------------------------------------------------------- /spells/ELIZA_MODULE_Task_FindSkill.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "dcaf43d7-9fe8-41b6-be30-ae3062d6e3f2", 3 | "name": "ELIZA_MODULE_Task_FindSkill", 4 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 5 | "hash": "8c57a96c134d59eabf7b20ff0cde562d", 6 | "createdAt": "1686210970868", 7 | "updatedAt": null, 8 | "graph": { 9 | "id": "demo@0.1.0", 10 | "nodes": { 11 | "721": { 12 | "id": 721, 13 | "data": { 14 | "type": "skill", 15 | "success": false, 16 | "max_count": "1", 17 | "dataControls": { 18 | "type": { 19 | "expanded": true 20 | }, 21 | "max_count": { 22 | "expanded": true 23 | } 24 | } 25 | }, 26 | "name": "Get Documents", 27 | "inputs": { 28 | "trigger": { 29 | "connections": [ 30 | { 31 | "data": { 32 | "hello": "hello" 33 | }, 34 | "node": 726, 35 | "output": "trigger" 36 | } 37 | ] 38 | }, 39 | "embedding": { 40 | "connections": [ 41 | { 42 | "data": { 43 | "hello": "hello" 44 | }, 45 | "node": 726, 46 | "output": "embedding" 47 | } 48 | ] 49 | } 50 | }, 51 | "outputs": { 52 | "trigger": { 53 | "connections": [ 54 | { 55 | "data": { 56 | "hello": "hello" 57 | }, 58 | "node": 951, 59 | "input": "trigger" 60 | } 61 | ] 62 | }, 63 | "documents": { 64 | "connections": [ 65 | { 66 | "data": { 67 | "hello": "hello" 68 | }, 69 | "node": 951, 70 | "input": "array" 71 | } 72 | ] 73 | } 74 | }, 75 | "position": [ 76 | -2880, 77 | -784 78 | ] 79 | }, 80 | "726": { 81 | "id": 726, 82 | "data": { 83 | "model": "embedding-gecko-001", 84 | "success": false 85 | }, 86 | "name": "Create Text Embedding", 87 | "inputs": { 88 | "input": { 89 | "connections": [ 90 | { 91 | "data": { 92 | "hello": "hello" 93 | }, 94 | "node": 2035, 95 | "output": "output" 96 | } 97 | ] 98 | }, 99 | "trigger": { 100 | "connections": [ 101 | { 102 | "data": { 103 | "hello": "hello" 104 | }, 105 | "node": 2035, 106 | "output": "trigger" 107 | } 108 | ] 109 | } 110 | }, 111 | "outputs": { 112 | "error": { 113 | "connections": [] 114 | }, 115 | "trigger": { 116 | "connections": [ 117 | { 118 | "data": { 119 | "hello": "hello" 120 | }, 121 | "node": 721, 122 | "input": "trigger" 123 | } 124 | ] 125 | }, 126 | "embedding": { 127 | "connections": [ 128 | { 129 | "data": { 130 | "hello": "hello" 131 | }, 132 | "node": 721, 133 | "input": "embedding" 134 | } 135 | ] 136 | } 137 | }, 138 | "position": [ 139 | -3168, 140 | -784 141 | ] 142 | }, 143 | "951": { 144 | "id": 951, 145 | "data": { 146 | "element": 0, 147 | "success": false 148 | }, 149 | "name": "Get Value From Array", 150 | "inputs": { 151 | "array": { 152 | "connections": [ 153 | { 154 | "data": { 155 | "hello": "hello" 156 | }, 157 | "node": 721, 158 | "output": "documents" 159 | } 160 | ] 161 | }, 162 | "trigger": { 163 | "connections": [ 164 | { 165 | "data": { 166 | "hello": "hello" 167 | }, 168 | "node": 721, 169 | "output": "trigger" 170 | } 171 | ] 172 | } 173 | }, 174 | "outputs": { 175 | "output": { 176 | "connections": [ 177 | { 178 | "data": { 179 | "hello": "hello" 180 | }, 181 | "node": 952, 182 | "input": "object" 183 | } 184 | ] 185 | }, 186 | "trigger": { 187 | "connections": [ 188 | { 189 | "data": { 190 | "hello": "hello" 191 | }, 192 | "node": 952, 193 | "input": "trigger" 194 | } 195 | ] 196 | } 197 | }, 198 | "position": [ 199 | -2592, 200 | -784 201 | ] 202 | }, 203 | "952": { 204 | "id": 952, 205 | "data": { 206 | "outputs": [ 207 | { 208 | "name": "content", 209 | "taskType": "output", 210 | "socketKey": "content", 211 | "socketType": "anySocket", 212 | "connectionType": "output" 213 | } 214 | ], 215 | "success": false, 216 | "dataControls": { 217 | "outputs": { 218 | "expanded": true 219 | } 220 | } 221 | }, 222 | "name": "Get Values From Object", 223 | "inputs": { 224 | "object": { 225 | "connections": [ 226 | { 227 | "data": { 228 | "hello": "hello" 229 | }, 230 | "node": 951, 231 | "output": "output" 232 | } 233 | ] 234 | }, 235 | "trigger": { 236 | "connections": [ 237 | { 238 | "data": { 239 | "hello": "hello" 240 | }, 241 | "node": 951, 242 | "output": "trigger" 243 | } 244 | ] 245 | } 246 | }, 247 | "outputs": { 248 | "content": { 249 | "connections": [ 250 | { 251 | "data": { 252 | "hello": "hello" 253 | }, 254 | "node": 953, 255 | "input": "input" 256 | } 257 | ] 258 | }, 259 | "trigger": { 260 | "connections": [ 261 | { 262 | "data": { 263 | "hello": "hello" 264 | }, 265 | "node": 953, 266 | "input": "trigger" 267 | } 268 | ] 269 | } 270 | }, 271 | "position": [ 272 | -2592, 273 | -592 274 | ] 275 | }, 276 | "953": { 277 | "id": 953, 278 | "data": { 279 | "success": false 280 | }, 281 | "name": "JSON To Object", 282 | "inputs": { 283 | "input": { 284 | "connections": [ 285 | { 286 | "data": { 287 | "hello": "hello" 288 | }, 289 | "node": 952, 290 | "output": "content" 291 | } 292 | ] 293 | }, 294 | "trigger": { 295 | "connections": [ 296 | { 297 | "data": { 298 | "hello": "hello" 299 | }, 300 | "node": 952, 301 | "output": "trigger" 302 | } 303 | ] 304 | } 305 | }, 306 | "outputs": { 307 | "output": { 308 | "connections": [ 309 | { 310 | "data": { 311 | "hello": "hello" 312 | }, 313 | "node": 954, 314 | "input": "object" 315 | } 316 | ] 317 | }, 318 | "trigger": { 319 | "connections": [ 320 | { 321 | "data": { 322 | "hello": "hello" 323 | }, 324 | "node": 954, 325 | "input": "trigger" 326 | } 327 | ] 328 | } 329 | }, 330 | "position": [ 331 | -2592, 332 | -400 333 | ] 334 | }, 335 | "954": { 336 | "id": 954, 337 | "data": { 338 | "outputs": [ 339 | { 340 | "name": "name", 341 | "taskType": "output", 342 | "socketKey": "name", 343 | "socketType": "anySocket", 344 | "connectionType": "output" 345 | } 346 | ], 347 | "success": false, 348 | "dataControls": { 349 | "outputs": { 350 | "expanded": true 351 | } 352 | } 353 | }, 354 | "name": "Get Values From Object", 355 | "inputs": { 356 | "object": { 357 | "connections": [ 358 | { 359 | "data": { 360 | "hello": "hello" 361 | }, 362 | "node": 953, 363 | "output": "output" 364 | } 365 | ] 366 | }, 367 | "trigger": { 368 | "connections": [ 369 | { 370 | "data": { 371 | "hello": "hello" 372 | }, 373 | "node": 953, 374 | "output": "trigger" 375 | } 376 | ] 377 | } 378 | }, 379 | "outputs": { 380 | "name": { 381 | "connections": [ 382 | { 383 | "data": { 384 | "hello": "hello" 385 | }, 386 | "node": 3118, 387 | "input": "input" 388 | } 389 | ] 390 | }, 391 | "trigger": { 392 | "connections": [ 393 | { 394 | "data": { 395 | "hello": "hello" 396 | }, 397 | "node": 3118, 398 | "input": "trigger" 399 | } 400 | ] 401 | } 402 | }, 403 | "position": [ 404 | -2592, 405 | -208 406 | ] 407 | }, 408 | "2035": { 409 | "id": 2035, 410 | "data": { 411 | "name": "Input - Default", 412 | "isInput": true, 413 | "success": false, 414 | "useData": true, 415 | "inputName": "Default", 416 | "inputType": "Default", 417 | "socketKey": "7a13c2d7-ba24-4cdc-b3b0-c9130a234079", 418 | "dataControls": { 419 | "useData": { 420 | "expanded": true 421 | }, 422 | "inputName": { 423 | "expanded": true 424 | }, 425 | "inputType": { 426 | "expanded": true 427 | } 428 | } 429 | }, 430 | "name": "Input", 431 | "inputs": {}, 432 | "outputs": { 433 | "output": { 434 | "connections": [ 435 | { 436 | "data": { 437 | "hello": "hello" 438 | }, 439 | "node": 726, 440 | "input": "input" 441 | } 442 | ] 443 | }, 444 | "trigger": { 445 | "connections": [ 446 | { 447 | "data": { 448 | "hello": "hello" 449 | }, 450 | "node": 726, 451 | "input": "trigger" 452 | } 453 | ] 454 | } 455 | }, 456 | "position": [ 457 | -3456, 458 | -784 459 | ] 460 | }, 461 | "3118": { 462 | "id": 3118, 463 | "data": { 464 | "name": "Output - Default", 465 | "isOutput": true, 466 | "socketKey": "5fee3b20-b8e7-42d9-8b02-ee5600c0e680", 467 | "sendToPlaytest": true 468 | }, 469 | "name": "Output", 470 | "inputs": { 471 | "event": { 472 | "connections": [] 473 | }, 474 | "input": { 475 | "connections": [ 476 | { 477 | "data": { 478 | "hello": "hello" 479 | }, 480 | "node": 954, 481 | "output": "name" 482 | } 483 | ] 484 | }, 485 | "trigger": { 486 | "connections": [ 487 | { 488 | "data": { 489 | "hello": "hello" 490 | }, 491 | "node": 954, 492 | "output": "trigger" 493 | } 494 | ] 495 | } 496 | }, 497 | "outputs": { 498 | "output": { 499 | "connections": [] 500 | }, 501 | "trigger": { 502 | "connections": [] 503 | } 504 | }, 505 | "position": [ 506 | -2304, 507 | -784 508 | ] 509 | } 510 | }, 511 | "comments": [] 512 | } 513 | } -------------------------------------------------------------------------------- /spells/ELIZA_MODULE_Task_Reasoning.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "9ca39d24-da3a-4ea2-bbc5-5845c04be11e", 3 | "name": "ELIZA_MODULE_Task_Reasoning", 4 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 5 | "hash": "8f1673f379793bdec2e9b0ef4b4ca6f9", 6 | "createdAt": "1686210970868", 7 | "updatedAt": null, 8 | "graph": { 9 | "id": "demo@0.1.0", 10 | "nodes": { 11 | "724": { 12 | "id": 724, 13 | "data": { 14 | "code": "\n// inputs: dictionary of inputs based on socket names\n// data: internal data of the node to read or write to nodes data state\nfunction worker({\n task,\n}, data) {\n // Keys of the object returned must match the names\n // of your outputs you defined.\n // To update the state, you must return the modified state.\n\nconst taskObjective = task.objective\n\nconst taskSteps = JSON.parse(task.steps)\n\n// TODO: Pull the reasoning, action and reflection\n\nconst lastSteps = taskSteps.map((step, idx) => {\n return `Step ${idx}: ${step.reasoning} [ACTION]: ${step.action} [SKILL]: ${step.skill} [RESULT]: ${taskSteps.reflection}` + '\\n'\n})\n\nconst template = \n`[EXAMPLE NEXT STEPS]\nAssistant: I need to recall memories and facts that I know about User.\n\nAssistant: I need to plan out everything I need to do to complete my objective before I start.\n\nAssistant: I should respond to User to let them know that I've finished planning and I'm going to start working on their request.\n\nAssistant: I should check the user's calendar.\n\n[OBJECTIVE]\n${taskObjective}\n${taskSteps.length > 0 && `\n[PREVIOUS STEPS]\nBreak the task into steps and then think about how to complete each step.\n${lastSteps.join('\\n')}\n`}\n[NEXT STEP]\nDetermine what to do next. Your response should be in the first person, and should start with \"I should\".\n`\n\nconst input = taskSteps.length > 0 ?\n`What is the next step?` :\n`What is the first step?`\n\n return {\n prompt: template,\n input\n }\n}", 15 | "name": "Format Prompt for Reasoning", 16 | "inputs": [ 17 | { 18 | "name": "task", 19 | "taskType": "output", 20 | "socketKey": "task", 21 | "socketType": "anySocket", 22 | "connectionType": "input" 23 | } 24 | ], 25 | "outputs": [ 26 | { 27 | "name": "input", 28 | "taskType": "output", 29 | "socketKey": "input", 30 | "socketType": "anySocket", 31 | "connectionType": "output" 32 | }, 33 | { 34 | "name": "prompt", 35 | "taskType": "output", 36 | "socketKey": "prompt", 37 | "socketType": "anySocket", 38 | "connectionType": "output" 39 | } 40 | ], 41 | "success": false, 42 | "dataControls": { 43 | "code": { 44 | "expanded": true 45 | }, 46 | "name": { 47 | "expanded": true 48 | }, 49 | "inputs": { 50 | "expanded": true 51 | }, 52 | "outputs": { 53 | "expanded": true 54 | } 55 | } 56 | }, 57 | "name": "Javascript", 58 | "inputs": { 59 | "task": { 60 | "connections": [ 61 | { 62 | "data": { 63 | "hello": "hello" 64 | }, 65 | "node": 2035, 66 | "output": "output" 67 | } 68 | ] 69 | }, 70 | "trigger": { 71 | "connections": [ 72 | { 73 | "data": { 74 | "hello": "hello" 75 | }, 76 | "node": 3277, 77 | "output": "trigger" 78 | } 79 | ] 80 | } 81 | }, 82 | "outputs": { 83 | "input": { 84 | "connections": [ 85 | { 86 | "data": { 87 | "hello": "hello" 88 | }, 89 | "node": 725, 90 | "input": "input" 91 | } 92 | ] 93 | }, 94 | "prompt": { 95 | "connections": [ 96 | { 97 | "data": { 98 | "hello": "hello" 99 | }, 100 | "node": 3276, 101 | "input": "input" 102 | }, 103 | { 104 | "data": { 105 | "hello": "hello" 106 | }, 107 | "node": 3332, 108 | "input": "string" 109 | }, 110 | { 111 | "data": { 112 | "hello": "hello" 113 | }, 114 | "node": 725, 115 | "input": "system" 116 | } 117 | ] 118 | }, 119 | "trigger": { 120 | "connections": [ 121 | { 122 | "data": { 123 | "hello": "hello" 124 | }, 125 | "node": 3276, 126 | "input": "trigger" 127 | }, 128 | { 129 | "data": { 130 | "hello": "hello" 131 | }, 132 | "node": 3332, 133 | "input": "trigger" 134 | } 135 | ] 136 | } 137 | }, 138 | "position": [ 139 | -128, 140 | 144 141 | ] 142 | }, 143 | "725": { 144 | "id": 725, 145 | "data": { 146 | "stop": "###", 147 | "error": false, 148 | "model": "chat-bison-001", 149 | "top_k": 50, 150 | "top_p": 1, 151 | "success": false, 152 | "temperature": 0.5, 153 | "stopSequences": "", 154 | "presence_penalty": 0, 155 | "frequency_penalty": 0 156 | }, 157 | "name": "Generate Text", 158 | "inputs": { 159 | "input": { 160 | "connections": [ 161 | { 162 | "data": { 163 | "hello": "hello" 164 | }, 165 | "node": 724, 166 | "output": "input" 167 | } 168 | ] 169 | }, 170 | "system": { 171 | "connections": [ 172 | { 173 | "data": { 174 | "hello": "hello" 175 | }, 176 | "node": 724, 177 | "output": "prompt" 178 | } 179 | ] 180 | }, 181 | "trigger": { 182 | "connections": [ 183 | { 184 | "data": { 185 | "hello": "hello" 186 | }, 187 | "node": 3276, 188 | "output": "trigger" 189 | } 190 | ] 191 | }, 192 | "examples": { 193 | "connections": [] 194 | }, 195 | "conversation": { 196 | "connections": [] 197 | } 198 | }, 199 | "outputs": { 200 | "error": { 201 | "connections": [] 202 | }, 203 | "result": { 204 | "connections": [ 205 | { 206 | "data": { 207 | "hello": "hello" 208 | }, 209 | "node": 2222, 210 | "input": "input" 211 | } 212 | ] 213 | }, 214 | "trigger": { 215 | "connections": [ 216 | { 217 | "data": { 218 | "hello": "hello" 219 | }, 220 | "node": 2222, 221 | "input": "trigger" 222 | } 223 | ] 224 | } 225 | }, 226 | "position": [ 227 | 240, 228 | 80 229 | ] 230 | }, 231 | "2035": { 232 | "id": 2035, 233 | "data": { 234 | "name": "Input - Default", 235 | "isInput": true, 236 | "success": false, 237 | "useData": true, 238 | "inputName": "Default", 239 | "inputType": "Default", 240 | "socketKey": "7a13c2d7-ba24-4cdc-b3b0-c9130a234079", 241 | "dataControls": { 242 | "useData": { 243 | "expanded": true 244 | }, 245 | "inputName": { 246 | "expanded": true 247 | }, 248 | "inputType": { 249 | "expanded": true 250 | } 251 | } 252 | }, 253 | "name": "Input", 254 | "inputs": {}, 255 | "outputs": { 256 | "output": { 257 | "connections": [ 258 | { 259 | "data": { 260 | "hello": "hello" 261 | }, 262 | "node": 724, 263 | "input": "task" 264 | }, 265 | { 266 | "data": { 267 | "hello": "hello" 268 | }, 269 | "node": 3277, 270 | "input": "object" 271 | }, 272 | { 273 | "data": { 274 | "hello": "hello" 275 | }, 276 | "node": 2222, 277 | "input": "event" 278 | } 279 | ] 280 | }, 281 | "trigger": { 282 | "connections": [ 283 | { 284 | "data": { 285 | "hello": "hello" 286 | }, 287 | "node": 3277, 288 | "input": "trigger" 289 | } 290 | ] 291 | } 292 | }, 293 | "position": [ 294 | -592, 295 | 192 296 | ] 297 | }, 298 | "2222": { 299 | "id": 2222, 300 | "data": { 301 | "name": "Output - Default", 302 | "isOutput": true, 303 | "socketKey": "7580b31c-77b7-42d7-ac49-59675714a28a", 304 | "sendToPlaytest": true 305 | }, 306 | "name": "Output", 307 | "inputs": { 308 | "event": { 309 | "connections": [ 310 | { 311 | "data": { 312 | "hello": "hello" 313 | }, 314 | "node": 2035, 315 | "output": "output" 316 | } 317 | ] 318 | }, 319 | "input": { 320 | "connections": [ 321 | { 322 | "data": { 323 | "hello": "hello" 324 | }, 325 | "node": 725, 326 | "output": "result" 327 | } 328 | ] 329 | }, 330 | "trigger": { 331 | "connections": [ 332 | { 333 | "data": { 334 | "hello": "hello" 335 | }, 336 | "node": 725, 337 | "output": "trigger" 338 | } 339 | ] 340 | } 341 | }, 342 | "outputs": { 343 | "output": { 344 | "connections": [] 345 | }, 346 | "trigger": { 347 | "connections": [] 348 | } 349 | }, 350 | "position": [ 351 | 816, 352 | 160 353 | ] 354 | }, 355 | "3276": { 356 | "id": 3276, 357 | "data": { 358 | "success": false, 359 | "socketKey": "b0df948c-bf68-4d83-9167-77675334d8e7", 360 | "sendToPlaytest": true 361 | }, 362 | "name": "Respond", 363 | "inputs": { 364 | "event": { 365 | "connections": [ 366 | { 367 | "data": { 368 | "hello": "hello" 369 | }, 370 | "node": 3277, 371 | "output": "eventData" 372 | } 373 | ] 374 | }, 375 | "input": { 376 | "connections": [ 377 | { 378 | "data": { 379 | "hello": "hello" 380 | }, 381 | "node": 724, 382 | "output": "prompt" 383 | } 384 | ] 385 | }, 386 | "trigger": { 387 | "connections": [ 388 | { 389 | "data": { 390 | "hello": "hello" 391 | }, 392 | "node": 724, 393 | "output": "trigger" 394 | } 395 | ] 396 | } 397 | }, 398 | "outputs": { 399 | "trigger": { 400 | "connections": [ 401 | { 402 | "data": { 403 | "hello": "hello" 404 | }, 405 | "node": 725, 406 | "input": "trigger" 407 | } 408 | ] 409 | } 410 | }, 411 | "position": [ 412 | 256, 413 | -240 414 | ] 415 | }, 416 | "3277": { 417 | "id": 3277, 418 | "data": { 419 | "outputs": [ 420 | { 421 | "name": "eventData", 422 | "taskType": "output", 423 | "socketKey": "eventData", 424 | "socketType": "anySocket", 425 | "connectionType": "output" 426 | } 427 | ], 428 | "success": false 429 | }, 430 | "name": "Get Values From Object", 431 | "inputs": { 432 | "object": { 433 | "connections": [ 434 | { 435 | "data": { 436 | "hello": "hello" 437 | }, 438 | "node": 2035, 439 | "output": "output" 440 | } 441 | ] 442 | }, 443 | "trigger": { 444 | "connections": [ 445 | { 446 | "data": { 447 | "hello": "hello" 448 | }, 449 | "node": 2035, 450 | "output": "trigger" 451 | } 452 | ] 453 | } 454 | }, 455 | "outputs": { 456 | "trigger": { 457 | "connections": [ 458 | { 459 | "data": { 460 | "hello": "hello" 461 | }, 462 | "node": 724, 463 | "input": "trigger" 464 | } 465 | ] 466 | }, 467 | "eventData": { 468 | "connections": [ 469 | { 470 | "data": { 471 | "hello": "hello" 472 | }, 473 | "node": 3276, 474 | "input": "event" 475 | } 476 | ] 477 | } 478 | }, 479 | "position": [ 480 | -352, 481 | -96 482 | ] 483 | }, 484 | "3332": { 485 | "id": 3332, 486 | "data": { 487 | "name": "!!!!!!! REASONING", 488 | "success": false 489 | }, 490 | "name": "Log", 491 | "inputs": { 492 | "string": { 493 | "connections": [ 494 | { 495 | "data": { 496 | "hello": "hello" 497 | }, 498 | "node": 724, 499 | "output": "prompt" 500 | } 501 | ] 502 | }, 503 | "trigger": { 504 | "connections": [ 505 | { 506 | "data": { 507 | "hello": "hello" 508 | }, 509 | "node": 724, 510 | "output": "trigger" 511 | } 512 | ] 513 | } 514 | }, 515 | "outputs": {}, 516 | "position": [ 517 | 288, 518 | 448 519 | ] 520 | } 521 | }, 522 | "comments": [ 523 | { 524 | "text": "handle tasks from the queue", 525 | "type": "frame", 526 | "links": [ 527 | 541, 528 | 2035 529 | ], 530 | "width": 332, 531 | "height": 246, 532 | "position": [ 533 | -635.9367363567571, 534 | 89.04897968994614 535 | ] 536 | }, 537 | { 538 | "text": "task loop", 539 | "type": "inline", 540 | "links": [], 541 | "position": [ 542 | -632.572129753738, 543 | -2.6663049602473166 544 | ] 545 | }, 546 | { 547 | "text": "Reasoning", 548 | "type": "frame", 549 | "links": [ 550 | 725, 551 | 724 552 | ], 553 | "width": 700, 554 | "height": 282, 555 | "position": [ 556 | -213.70661025593876, 557 | 62.78883961560393 558 | ] 559 | } 560 | ] 561 | } 562 | } -------------------------------------------------------------------------------- /spells/ELIZA_SKILL_cancel.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "89bdec68-665a-442a-8381-2b9d9dffcae5", 3 | "name": "ELIZA_SKILL_cancel", 4 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 5 | "hash": "209bb651f73083dda6bc6e4f7a318f99", 6 | "createdAt": "1686210970868", 7 | "updatedAt": null, 8 | "graph": { 9 | "id": "demo@0.1.0", 10 | "nodes": { 11 | "233": { 12 | "id": 233, 13 | "data": { 14 | "name": "Output - Default", 15 | "success": false, 16 | "isOutput": true, 17 | "socketKey": "08e69df5-7f0f-42f7-a880-8ab319e0f38f", 18 | "outputType": "Default", 19 | "dataControls": { 20 | "outputType": { 21 | "expanded": true 22 | } 23 | }, 24 | "sendToPlaytest": true 25 | }, 26 | "name": "Output", 27 | "inputs": { 28 | "event": { 29 | "connections": [] 30 | }, 31 | "input": { 32 | "connections": [ 33 | { 34 | "data": { 35 | "hello": "hello" 36 | }, 37 | "node": 1816, 38 | "output": "prompt" 39 | } 40 | ] 41 | }, 42 | "trigger": { 43 | "connections": [ 44 | { 45 | "data": { 46 | "hello": "hello" 47 | }, 48 | "node": 1816, 49 | "output": "trigger" 50 | } 51 | ] 52 | } 53 | }, 54 | "outputs": { 55 | "output": { 56 | "connections": [] 57 | }, 58 | "trigger": { 59 | "connections": [] 60 | } 61 | }, 62 | "position": [ 63 | -416, 64 | -352 65 | ] 66 | }, 67 | "1477": { 68 | "id": 1477, 69 | "data": { 70 | "name": "Input - Default", 71 | "isInput": true, 72 | "useData": true, 73 | "inputName": "Default", 74 | "socketKey": "37c27bb8-ebee-4f7b-ad7c-13293192d487", 75 | "useTrigger": true 76 | }, 77 | "name": "Input", 78 | "inputs": {}, 79 | "outputs": { 80 | "output": { 81 | "connections": [ 82 | { 83 | "data": { 84 | "hello": "hello" 85 | }, 86 | "node": 1821, 87 | "input": "task" 88 | } 89 | ] 90 | }, 91 | "trigger": { 92 | "connections": [ 93 | { 94 | "data": { 95 | "hello": "hello" 96 | }, 97 | "node": 1821, 98 | "input": "trigger" 99 | } 100 | ] 101 | } 102 | }, 103 | "position": [ 104 | -1392, 105 | -128 106 | ] 107 | }, 108 | "1816": { 109 | "id": 1816, 110 | "data": { 111 | "fewshot": "I have canceled the task, because I could not complete it successfully.", 112 | "dataControls": { 113 | "inputs": { 114 | "expanded": true 115 | }, 116 | "fewshot": { 117 | "expanded": true 118 | } 119 | } 120 | }, 121 | "name": "Text Template", 122 | "inputs": { 123 | "trigger": { 124 | "connections": [ 125 | { 126 | "data": { 127 | "hello": "hello" 128 | }, 129 | "node": 1821, 130 | "output": "trigger" 131 | } 132 | ] 133 | } 134 | }, 135 | "outputs": { 136 | "prompt": { 137 | "connections": [ 138 | { 139 | "data": { 140 | "hello": "hello" 141 | }, 142 | "node": 233, 143 | "input": "input" 144 | } 145 | ] 146 | }, 147 | "trigger": { 148 | "connections": [ 149 | { 150 | "data": { 151 | "hello": "hello" 152 | }, 153 | "node": 233, 154 | "input": "trigger" 155 | } 156 | ] 157 | } 158 | }, 159 | "position": [ 160 | -784, 161 | -352 162 | ] 163 | }, 164 | "1821": { 165 | "id": 1821, 166 | "data": {}, 167 | "name": "Cancel Task", 168 | "inputs": { 169 | "task": { 170 | "connections": [ 171 | { 172 | "data": { 173 | "hello": "hello" 174 | }, 175 | "node": 1477, 176 | "output": "output" 177 | } 178 | ] 179 | }, 180 | "trigger": { 181 | "connections": [ 182 | { 183 | "data": { 184 | "hello": "hello" 185 | }, 186 | "node": 1477, 187 | "output": "trigger" 188 | } 189 | ] 190 | } 191 | }, 192 | "outputs": { 193 | "trigger": { 194 | "connections": [ 195 | { 196 | "data": { 197 | "hello": "hello" 198 | }, 199 | "node": 1816, 200 | "input": "trigger" 201 | } 202 | ] 203 | } 204 | }, 205 | "position": [ 206 | -1056, 207 | -128 208 | ] 209 | } 210 | }, 211 | "comments": [] 212 | } 213 | } -------------------------------------------------------------------------------- /spells/ELIZA_SKILL_complete.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "621d3061-b91c-4739-834d-b088a5683f60", 3 | "name": "ELIZA_SKILL_complete", 4 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 5 | "hash": "105d7b722743ff9c1c1706afdd9c33f8", 6 | "createdAt": "1686210970868", 7 | "updatedAt": null, 8 | "graph": { 9 | "id": "demo@0.1.0", 10 | "nodes": { 11 | "1812": { 12 | "id": 1812, 13 | "data": { 14 | "success": false 15 | }, 16 | "name": "Complete Task", 17 | "inputs": { 18 | "task": { 19 | "connections": [ 20 | { 21 | "data": { 22 | "hello": "hello" 23 | }, 24 | "node": 5021, 25 | "output": "output" 26 | } 27 | ] 28 | }, 29 | "trigger": { 30 | "connections": [ 31 | { 32 | "data": { 33 | "hello": "hello" 34 | }, 35 | "node": 5021, 36 | "output": "trigger" 37 | } 38 | ] 39 | } 40 | }, 41 | "outputs": { 42 | "task": { 43 | "connections": [] 44 | }, 45 | "trigger": { 46 | "connections": [] 47 | } 48 | }, 49 | "position": [ 50 | -1088, 51 | -128 52 | ] 53 | }, 54 | "5021": { 55 | "id": 5021, 56 | "data": { 57 | "name": "Input - Default", 58 | "isInput": true, 59 | "useData": true, 60 | "inputName": "Default", 61 | "socketKey": "bbbc8d0b-6935-4fbf-85a6-9429bc057282" 62 | }, 63 | "name": "Input", 64 | "inputs": {}, 65 | "outputs": { 66 | "output": { 67 | "connections": [ 68 | { 69 | "data": { 70 | "hello": "hello" 71 | }, 72 | "node": 1812, 73 | "input": "task" 74 | } 75 | ] 76 | }, 77 | "trigger": { 78 | "connections": [ 79 | { 80 | "data": { 81 | "hello": "hello" 82 | }, 83 | "node": 1812, 84 | "input": "trigger" 85 | } 86 | ] 87 | } 88 | }, 89 | "position": [ 90 | -1424, 91 | -128 92 | ] 93 | } 94 | }, 95 | "comments": [] 96 | } 97 | } -------------------------------------------------------------------------------- /spells/ELIZA_SKILL_plan.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "a9aadedb-c84e-4c9f-b384-326d1a520e40", 3 | "name": "ELIZA_SKILL_plan", 4 | "projectId": "bb1b3d24-84e0-424e-b4f1-57603f307a89", 5 | "hash": "941763045c112c65bbc26d0d755e65e4", 6 | "createdAt": "1686384725424", 7 | "updatedAt": null, 8 | "graph": { 9 | "id": "demo@0.1.0", 10 | "nodes": { 11 | "233": { 12 | "id": 233, 13 | "data": { 14 | "name": "Output - Default", 15 | "success": false, 16 | "isOutput": true, 17 | "socketKey": "08e69df5-7f0f-42f7-a880-8ab319e0f38f", 18 | "outputType": "Default", 19 | "dataControls": { 20 | "outputType": { 21 | "expanded": true 22 | } 23 | }, 24 | "sendToPlaytest": true 25 | }, 26 | "name": "Output", 27 | "inputs": { 28 | "event": { 29 | "connections": [] 30 | }, 31 | "input": { 32 | "connections": [ 33 | { 34 | "data": { 35 | "hello": "hello" 36 | }, 37 | "node": 2610, 38 | "output": "result" 39 | } 40 | ] 41 | }, 42 | "trigger": { 43 | "connections": [ 44 | { 45 | "data": { 46 | "hello": "hello" 47 | }, 48 | "node": 2610, 49 | "output": "trigger" 50 | } 51 | ] 52 | } 53 | }, 54 | "outputs": { 55 | "output": { 56 | "connections": [] 57 | }, 58 | "trigger": { 59 | "connections": [ 60 | { 61 | "data": { 62 | "hello": "hello" 63 | }, 64 | "node": 3111, 65 | "input": "trigger" 66 | } 67 | ] 68 | } 69 | }, 70 | "position": [ 71 | 352, 72 | -96 73 | ] 74 | }, 75 | "1477": { 76 | "id": 1477, 77 | "data": { 78 | "name": "Input - Default", 79 | "isInput": true, 80 | "success": false, 81 | "useData": true, 82 | "inputName": "Default", 83 | "socketKey": "37c27bb8-ebee-4f7b-ad7c-13293192d487", 84 | "useTrigger": true 85 | }, 86 | "name": "Input", 87 | "inputs": {}, 88 | "outputs": { 89 | "output": { 90 | "connections": [ 91 | { 92 | "data": { 93 | "hello": "hello" 94 | }, 95 | "node": 1501, 96 | "input": "object" 97 | } 98 | ] 99 | }, 100 | "trigger": { 101 | "connections": [ 102 | { 103 | "data": { 104 | "hello": "hello" 105 | }, 106 | "node": 1501, 107 | "input": "trigger" 108 | } 109 | ] 110 | } 111 | }, 112 | "position": [ 113 | -1600, 114 | -128 115 | ] 116 | }, 117 | "1501": { 118 | "id": 1501, 119 | "data": { 120 | "outputs": [ 121 | { 122 | "name": "steps", 123 | "taskType": "output", 124 | "socketKey": "steps", 125 | "socketType": "anySocket", 126 | "connectionType": "output" 127 | }, 128 | { 129 | "name": "objective", 130 | "taskType": "output", 131 | "socketKey": "objective", 132 | "socketType": "anySocket", 133 | "connectionType": "output" 134 | }, 135 | { 136 | "name": "eventData", 137 | "taskType": "output", 138 | "socketKey": "eventData", 139 | "socketType": "anySocket", 140 | "connectionType": "output" 141 | } 142 | ], 143 | "success": false, 144 | "dataControls": { 145 | "outputs": { 146 | "expanded": true 147 | } 148 | } 149 | }, 150 | "name": "Get Values From Object", 151 | "inputs": { 152 | "object": { 153 | "connections": [ 154 | { 155 | "data": { 156 | "hello": "hello" 157 | }, 158 | "node": 1477, 159 | "output": "output" 160 | } 161 | ] 162 | }, 163 | "trigger": { 164 | "connections": [ 165 | { 166 | "data": { 167 | "hello": "hello" 168 | }, 169 | "node": 1477, 170 | "output": "trigger" 171 | } 172 | ] 173 | } 174 | }, 175 | "outputs": { 176 | "steps": { 177 | "connections": [ 178 | { 179 | "data": { 180 | "hello": "hello" 181 | }, 182 | "node": 1574, 183 | "input": "input" 184 | }, 185 | { 186 | "data": { 187 | "hello": "hello" 188 | }, 189 | "node": 3110, 190 | "input": "string" 191 | } 192 | ] 193 | }, 194 | "trigger": { 195 | "connections": [ 196 | { 197 | "data": { 198 | "hello": "hello" 199 | }, 200 | "node": 1574, 201 | "input": "trigger" 202 | } 203 | ] 204 | }, 205 | "eventData": { 206 | "connections": [ 207 | { 208 | "data": { 209 | "hello": "hello" 210 | }, 211 | "node": 1502, 212 | "input": "event" 213 | } 214 | ] 215 | }, 216 | "objective": { 217 | "connections": [ 218 | { 219 | "data": { 220 | "hello": "hello" 221 | }, 222 | "node": 1758, 223 | "input": "objective" 224 | } 225 | ] 226 | } 227 | }, 228 | "position": [ 229 | -1296, 230 | -128 231 | ] 232 | }, 233 | "1502": { 234 | "id": 1502, 235 | "data": { 236 | "success": false, 237 | "socketKey": "ed79f6a0-6e8a-428d-aa4a-21b8d4a71132" 238 | }, 239 | "name": "Event Destructure", 240 | "inputs": { 241 | "event": { 242 | "connections": [ 243 | { 244 | "data": { 245 | "hello": "hello" 246 | }, 247 | "node": 1501, 248 | "output": "eventData" 249 | } 250 | ] 251 | }, 252 | "trigger": { 253 | "connections": [ 254 | { 255 | "data": { 256 | "hello": "hello" 257 | }, 258 | "node": 1574, 259 | "output": "trigger" 260 | } 261 | ] 262 | } 263 | }, 264 | "outputs": { 265 | "client": { 266 | "connections": [] 267 | }, 268 | "sender": { 269 | "connections": [] 270 | }, 271 | "agentId": { 272 | "connections": [] 273 | }, 274 | "channel": { 275 | "connections": [] 276 | }, 277 | "content": { 278 | "connections": [ 279 | { 280 | "data": { 281 | "hello": "hello" 282 | }, 283 | "node": 1758, 284 | "input": "reasoning" 285 | } 286 | ] 287 | }, 288 | "rawData": { 289 | "connections": [] 290 | }, 291 | "trigger": { 292 | "connections": [ 293 | { 294 | "data": { 295 | "hello": "hello" 296 | }, 297 | "node": 1758, 298 | "input": "trigger" 299 | } 300 | ] 301 | }, 302 | "entities": { 303 | "connections": [] 304 | }, 305 | "observer": { 306 | "connections": [] 307 | }, 308 | "connector": { 309 | "connections": [] 310 | }, 311 | "embedding": { 312 | "connections": [] 313 | }, 314 | "projectId": { 315 | "connections": [] 316 | }, 317 | "channelType": { 318 | "connections": [] 319 | } 320 | }, 321 | "position": [ 322 | -656, 323 | -128 324 | ] 325 | }, 326 | "1574": { 327 | "id": 1574, 328 | "data": { 329 | "success": false 330 | }, 331 | "name": "JSON To Object", 332 | "inputs": { 333 | "input": { 334 | "connections": [ 335 | { 336 | "data": { 337 | "hello": "hello" 338 | }, 339 | "node": 1501, 340 | "output": "steps" 341 | } 342 | ] 343 | }, 344 | "trigger": { 345 | "connections": [ 346 | { 347 | "data": { 348 | "hello": "hello" 349 | }, 350 | "node": 1501, 351 | "output": "trigger" 352 | } 353 | ] 354 | } 355 | }, 356 | "outputs": { 357 | "output": { 358 | "connections": [ 359 | { 360 | "data": { 361 | "hello": "hello" 362 | }, 363 | "node": 1758, 364 | "input": "steps" 365 | } 366 | ] 367 | }, 368 | "trigger": { 369 | "connections": [ 370 | { 371 | "data": { 372 | "hello": "hello" 373 | }, 374 | "node": 1502, 375 | "input": "trigger" 376 | }, 377 | { 378 | "data": { 379 | "hello": "hello" 380 | }, 381 | "node": 3110, 382 | "input": "trigger" 383 | } 384 | ] 385 | } 386 | }, 387 | "position": [ 388 | -960, 389 | -128 390 | ] 391 | }, 392 | "1758": { 393 | "id": 1758, 394 | "data": { 395 | "code": "\n// inputs: dictionary of inputs based on socket names\n// data: internal data of the node to read or write to nodes data state\nfunction worker({\n steps,\n objective,\n reasoning,\n}, data) {\n const lastSteps = steps.map((step, idx) => {\n return `Step ${idx}: ${step.reasoning} [ACTION]: ${step.action} [SKILL]: ${step.skill} [RESULT]: ${step.reflection}` + '\\n'\n })\n\n const template =\n `[OBJECTIVE]\n${objective}\n\n${steps.length > 0 && `\n[PREVIOUS STEPS]\nBreak the task into steps and then think about how to complete each step.\n${lastSteps.join('\\n')}\n`}\n[CURRENT STEP (PLANNING)]\nReasoning: ${reasoning}\n\n[PLANNING STEP]\nGiven the objective, last steps and reasoning for the current step, write a detailed plan for how to execute the task and complete the objective.\n`\n\nconst input = 'What is my plan?'\n\n return {\n prompt: template,\n input\n }\n}", 396 | "inputs": [ 397 | { 398 | "name": "steps", 399 | "taskType": "output", 400 | "socketKey": "steps", 401 | "socketType": "anySocket", 402 | "connectionType": "input" 403 | }, 404 | { 405 | "name": "objective", 406 | "taskType": "output", 407 | "socketKey": "objective", 408 | "socketType": "anySocket", 409 | "connectionType": "input" 410 | }, 411 | { 412 | "name": "reasoning", 413 | "taskType": "output", 414 | "socketKey": "reasoning", 415 | "socketType": "anySocket", 416 | "connectionType": "input" 417 | } 418 | ], 419 | "outputs": [ 420 | { 421 | "name": "input", 422 | "taskType": "output", 423 | "socketKey": "input", 424 | "socketType": "anySocket", 425 | "connectionType": "output" 426 | }, 427 | { 428 | "name": "prompt", 429 | "taskType": "output", 430 | "socketKey": "prompt", 431 | "socketType": "anySocket", 432 | "connectionType": "output" 433 | } 434 | ], 435 | "success": false, 436 | "dataControls": { 437 | "code": { 438 | "expanded": true 439 | }, 440 | "name": { 441 | "expanded": true 442 | }, 443 | "inputs": { 444 | "expanded": true 445 | }, 446 | "outputs": { 447 | "expanded": true 448 | } 449 | } 450 | }, 451 | "name": "Javascript", 452 | "inputs": { 453 | "steps": { 454 | "connections": [ 455 | { 456 | "data": { 457 | "hello": "hello" 458 | }, 459 | "node": 1574, 460 | "output": "output" 461 | } 462 | ] 463 | }, 464 | "trigger": { 465 | "connections": [ 466 | { 467 | "data": { 468 | "hello": "hello" 469 | }, 470 | "node": 1502, 471 | "output": "trigger" 472 | } 473 | ] 474 | }, 475 | "objective": { 476 | "connections": [ 477 | { 478 | "data": { 479 | "hello": "hello" 480 | }, 481 | "node": 1501, 482 | "output": "objective" 483 | } 484 | ] 485 | }, 486 | "reasoning": { 487 | "connections": [ 488 | { 489 | "data": { 490 | "hello": "hello" 491 | }, 492 | "node": 1502, 493 | "output": "content" 494 | } 495 | ] 496 | } 497 | }, 498 | "outputs": { 499 | "input": { 500 | "connections": [ 501 | { 502 | "data": { 503 | "hello": "hello" 504 | }, 505 | "node": 2610, 506 | "input": "input" 507 | } 508 | ] 509 | }, 510 | "prompt": { 511 | "connections": [ 512 | { 513 | "data": { 514 | "hello": "hello" 515 | }, 516 | "node": 2610, 517 | "input": "system" 518 | } 519 | ] 520 | }, 521 | "trigger": { 522 | "connections": [ 523 | { 524 | "data": { 525 | "hello": "hello" 526 | }, 527 | "node": 2610, 528 | "input": "trigger" 529 | } 530 | ] 531 | } 532 | }, 533 | "position": [ 534 | -352, 535 | -224 536 | ] 537 | }, 538 | "2610": { 539 | "id": 2610, 540 | "data": { 541 | "stop": "###", 542 | "error": false, 543 | "model": "gpt-3.5-turbo", 544 | "top_p": 1, 545 | "temperature": 0.5, 546 | "presence_penalty": 0, 547 | "frequency_penalty": 0 548 | }, 549 | "name": "Generate Text", 550 | "inputs": { 551 | "input": { 552 | "connections": [ 553 | { 554 | "data": { 555 | "hello": "hello" 556 | }, 557 | "node": 1758, 558 | "output": "input" 559 | } 560 | ] 561 | }, 562 | "system": { 563 | "connections": [ 564 | { 565 | "data": { 566 | "hello": "hello" 567 | }, 568 | "node": 1758, 569 | "output": "prompt" 570 | } 571 | ] 572 | }, 573 | "trigger": { 574 | "connections": [ 575 | { 576 | "data": { 577 | "hello": "hello" 578 | }, 579 | "node": 1758, 580 | "output": "trigger" 581 | } 582 | ] 583 | }, 584 | "conversation": { 585 | "connections": [] 586 | } 587 | }, 588 | "outputs": { 589 | "error": { 590 | "connections": [] 591 | }, 592 | "result": { 593 | "connections": [ 594 | { 595 | "data": { 596 | "hello": "hello" 597 | }, 598 | "node": 3111, 599 | "input": "input" 600 | }, 601 | { 602 | "data": { 603 | "hello": "hello" 604 | }, 605 | "node": 233, 606 | "input": "input" 607 | } 608 | ] 609 | }, 610 | "trigger": { 611 | "connections": [ 612 | { 613 | "data": { 614 | "hello": "hello" 615 | }, 616 | "node": 233, 617 | "input": "trigger" 618 | } 619 | ] 620 | } 621 | }, 622 | "position": [ 623 | -16, 624 | -224 625 | ] 626 | }, 627 | "3110": { 628 | "id": 3110, 629 | "data": { 630 | "name": "PLAN!!!!!" 631 | }, 632 | "name": "Log", 633 | "inputs": { 634 | "string": { 635 | "connections": [ 636 | { 637 | "data": { 638 | "hello": "hello" 639 | }, 640 | "node": 1501, 641 | "output": "steps" 642 | } 643 | ] 644 | }, 645 | "trigger": { 646 | "connections": [ 647 | { 648 | "data": { 649 | "hello": "hello" 650 | }, 651 | "node": 1574, 652 | "output": "trigger" 653 | } 654 | ] 655 | } 656 | }, 657 | "outputs": {}, 658 | "position": [ 659 | 0, 660 | -464 661 | ] 662 | }, 663 | "3111": { 664 | "id": 3111, 665 | "data": { 666 | "socketKey": "8e0e4a3f-474b-47fd-859f-3d92e3f1dd5f", 667 | "sendToPlaytest": true 668 | }, 669 | "name": "Respond", 670 | "inputs": { 671 | "event": { 672 | "connections": [] 673 | }, 674 | "input": { 675 | "connections": [ 676 | { 677 | "data": { 678 | "hello": "hello" 679 | }, 680 | "node": 2610, 681 | "output": "result" 682 | } 683 | ] 684 | }, 685 | "trigger": { 686 | "connections": [ 687 | { 688 | "data": { 689 | "hello": "hello" 690 | }, 691 | "node": 233, 692 | "output": "trigger" 693 | } 694 | ] 695 | } 696 | }, 697 | "outputs": { 698 | "trigger": { 699 | "connections": [] 700 | } 701 | }, 702 | "position": [ 703 | 704, 704 | -256 705 | ] 706 | } 707 | }, 708 | "comments": [] 709 | } 710 | } --------------------------------------------------------------------------------