aboutsummaryrefslogtreecommitdiff
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
parent2a008bd125169de6dbeeabaebe5939297c9f8c54 (diff)
expanding functionality
-rw-r--r--src/client/apis/gpt/GPT.ts2
-rw-r--r--src/client/views/nodes/chatbot/agentsystem/Agent.ts5
-rw-r--r--src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts2
3 files changed, 8 insertions, 1 deletions
diff --git a/src/client/apis/gpt/GPT.ts b/src/client/apis/gpt/GPT.ts
index 6258a82dc..c2b518178 100644
--- a/src/client/apis/gpt/GPT.ts
+++ b/src/client/apis/gpt/GPT.ts
@@ -229,7 +229,7 @@ const callTypeMap: { [type in GPTCallType]: GPTCallOpts } = {
Make sure each description is only in the list once. Each item should be separated by '${DescriptionSeperator}'.
Immediately afterward, surrounded by '${DocSeperator}' on BOTH SIDES, provide some insight into your reasoning in the 2nd person (and mention nothing about the formatting details given in this description).
It is VERY important that you format it exactly as described, ensuring the proper number of '${DescriptionSeperator[0]}' and '${DocSeperator[0]}' (${DescriptionSeperator.length} of each) and NO commas`,
- },
+ }, //A description of a Chat Assistant, if present, should always be included in the subset.
doc_info: {
model: 'gpt-4-turbo',
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',