diff options
Diffstat (limited to 'src/client/views')
| -rw-r--r-- | src/client/views/nodes/chatbot/agentsystem/Agent.ts | 5 | ||||
| -rw-r--r-- | src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts | 2 |
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', |
