aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralyssaf16 <alyssa_feinberg@brown.edu>2024-11-13 02:13:24 -0500
committeralyssaf16 <alyssa_feinberg@brown.edu>2024-11-13 02:13:24 -0500
commitf2881fd855ecc29ab79e6d4eda6808f4782bb67c (patch)
tree40052ca0e37baf142ca5263b99e59253d7368c1f /src
parent84cfc17b6b743a498f0f3b8680d262c3695e00fa (diff)
dashboard functioning
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/chatbot/tools/CreateDocumentTool.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/nodes/chatbot/tools/CreateDocumentTool.ts b/src/client/views/nodes/chatbot/tools/CreateDocumentTool.ts
index d35dd0e1d..829ab97a4 100644
--- a/src/client/views/nodes/chatbot/tools/CreateDocumentTool.ts
+++ b/src/client/views/nodes/chatbot/tools/CreateDocumentTool.ts
@@ -27,7 +27,7 @@ const example = [
backgroundColor: '#00ff00',
width: 600,
height: 600,
- type_collection: 'freeform',
+ type_collection: 'tree',
},
{
doc_type: 'image',
@@ -198,7 +198,7 @@ const finalJsonString = JSON.stringify(example);
const docInstructions = {
collection: {
description:
- 'A recursive collection of documents as a stringified array. Each document can be a "text", "flashcard", "image", "web", "image", "comparison", "equation", "noteboard", "simulation", "diagram", "map", "screengrab", "webcam", "button", or another "collection".',
+ 'A recursive collection of documents as a stringified array. Each document can be a "text", "deck", "flashcard", "image", "web", "image", "comparison", "equation", "noteboard", "simulation", "diagram", "map", "screengrab", "webcam", "button", or another "collection".',
example: finalJsonString,
},
text: 'Provide text content as a plain string. Example: "This is a standalone text document."',
@@ -286,14 +286,14 @@ export class CreateDocTool extends BaseTool<CreateListDocToolParamsType> {
constructor(addLinkedDoc: (doc_type: string, data: string, options: DocumentOptions, id: string) => void) {
super(
'createDoc',
- 'Creates one or more documents that best fit the user’s request. If the user requests a "dashboard," first call search tool and then generate a variety of document types individually, each with different content and color schemes. For example, create multiple individual documents like "text," "deck," "web," "image," "equation," and "comparison." ' +
+ 'Creates one or more documents that best fit the user’s request. If the user requests a "dashboard," first call search tool and then generate a variety of document types individually, each with different content and color schemes. For example, create multiple individual documents like "text," "deck," "web," "image," "equation," and "comparison." Use decks instead of flashcards for dashboards. ' +
'Do not nest all documents within a single collection unless explicitly requested by the user. Instead, create a set of independent documents with diverse document types. Each type should appear separately unless specified otherwise.',
createListDocToolParams,
'Use the "data" parameter for document content and include title, color, and document dimensions. Ensure web documents use URLs from the search tool if relevant. Each document in a dashboard should be unique and well-differentiated in type and content, without repetition of similar types in any single collection.',
'When creating a dashboard, ensure that it consists of a broad range of document types. Include a variety of documents, such as text, web, deck, comparison, image, simulation, and equation documents, each with distinct titles and colors, following the user’s preferences. ' +
'Do not overuse collections or nest all document types within a single collection; instead, represent document types individually. Use this example for reference: ' +
finalJsonString +
- '. Create dashboard after search tool.'
+ '. Which documents are created should be random with different numbers of each document type and different for each dashboard. Must use search tool before creating a dashboard.'
);
// super(