aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts
diff options
context:
space:
mode:
authorA.J. Shulman <Shulman.aj@gmail.com>2024-12-19 11:45:00 -0500
committerA.J. Shulman <Shulman.aj@gmail.com>2024-12-19 11:45:00 -0500
commitf915013d2ccfaeb7f04bf8bfea57e6d7d1f66b81 (patch)
tree69cde0426434a687a096ebe987145628afd145b0 /src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts
parent9b4c554cca11f5c3105085b54646e684dd235f1d (diff)
image generation works better
Diffstat (limited to 'src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts')
-rw-r--r--src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts b/src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts
index 4c059177b..36f133503 100644
--- a/src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts
+++ b/src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts
@@ -7,8 +7,8 @@ import { DocumentOptions, Docs } from '../../../../documents/Documents';
/**
* List of supported document types that can be created via text LLM.
*/
-type supportedDocumentTypesType = 'text' | 'html' | 'equation' | 'function_plot' | 'dataviz' | 'note_taking' | 'rtf' | 'message' | 'mermaid_diagram';
-const supportedDocumentTypes: supportedDocumentTypesType[] = ['text', 'html', 'equation', 'function_plot', 'dataviz', 'note_taking', 'rtf', 'message', 'mermaid_diagram'];
+type supportedDocumentTypesType = 'text' | 'html' | 'equation' | 'function_plot' | 'dataviz' | 'note_taking' | 'rtf' | 'message' | 'mermaid_diagram' | 'script';
+const supportedDocumentTypes: supportedDocumentTypesType[] = ['text', 'html', 'equation', 'function_plot', 'dataviz', 'note_taking', 'rtf', 'message', 'mermaid_diagram', 'script'];
/**
* Description of document options and data field for each type.
@@ -50,6 +50,10 @@ const documentTypesInfo = {
options: ['title', 'backgroundColor', 'layout'],
dataDescription: 'The Mermaid diagram content.',
},
+ script: {
+ options: ['title', 'backgroundColor', 'layout'],
+ dataDescription: 'The compilable JavaScript code. Use this for creating scripts.',
+ },
};
const createAnyDocumentToolParams = [