aboutsummaryrefslogtreecommitdiff
path: root/src/client/views
diff options
context:
space:
mode:
authorsharkiecodes <lanyi_stroud@brown.edu>2025-07-10 10:22:19 -0400
committersharkiecodes <lanyi_stroud@brown.edu>2025-07-10 10:22:19 -0400
commitb5d53fc2dda0c2adcf0ccd388872faaca7606fa0 (patch)
tree403aaa4941c4afbc0e8ae38348b1c83b18de4962 /src/client/views
parent2a008bd125169de6dbeeabaebe5939297c9f8c54 (diff)
expanding functionality
Diffstat (limited to 'src/client/views')
-rw-r--r--src/client/views/nodes/chatbot/agentsystem/Agent.ts5
-rw-r--r--src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/client/views/nodes/chatbot/agentsystem/Agent.ts b/src/client/views/nodes/chatbot/agentsystem/Agent.ts
index 6c48820aa..47e2e8fd3 100644
--- a/src/client/views/nodes/chatbot/agentsystem/Agent.ts
+++ b/src/client/views/nodes/chatbot/agentsystem/Agent.ts
@@ -29,9 +29,11 @@ import { FileNamesTool } from '../tools/FileNamesTool';
import { RAGTool } from '../tools/RAGTool';
import { SortDocsTool } from '../tools/SortDocsTool';
import { TagDocsTool } from '../tools/TagDocsTool';
+import { TakeQuizTool } from '../tools/TakeQuizTool';
import { GPTTutorialTool } from '../tools/TutorialTool';
import { WebsiteInfoScraperTool } from '../tools/WebsiteInfoScraperTool';
import { AgentDocumentManager } from '../utils/AgentDocumentManager';
+import { FilterDocsTool } from '../tools/FilterDocTool';
dotenv.config();
@@ -110,6 +112,9 @@ export class Agent {
generateTutorialNode: new GPTTutorialTool(this._docManager),
sortDocs: new SortDocsTool(this._docManager, this.parentView),
tagDocs: new TagDocsTool(this._docManager),
+ filterDocs: new FilterDocsTool(this._docManager, this.parentView),
+ takeQuiz: new TakeQuizTool(this._docManager),
+
};
// Add the createNewTool after other tools are defined
diff --git a/src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts b/src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts
index fd44cc60f..6568766c5 100644
--- a/src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts
+++ b/src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts
@@ -24,6 +24,8 @@ const parameterDefinitions: ReadonlyArray<Parameter> = [
type: 'string',
required: false,
description: `JSON array of field edits for editing fields. Each item should have fieldName and fieldValue. For single field edits, use an array with one item. fieldName values MUST be in this list: [${Object.keys(DocumentOptions)}]. Example: [{"fieldName":"layout_autoHeight","fieldValue":false},{"fieldName":"height","fieldValue":300}]`,
+ //Chat is not honoring restrictions to doc option fields
+
},
{
name: 'title',