aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts
diff options
context:
space:
mode:
authorsharkiecodes <lanyi_stroud@brown.edu>2025-07-22 21:05:47 -0400
committersharkiecodes <lanyi_stroud@brown.edu>2025-07-22 21:05:47 -0400
commit16e7cfcac3d41bd86ef953f131bb0fecba11f299 (patch)
treea2b91bf30e75e513b4913ac88ec3158e512665cf /src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts
parent8ff34d5335093c4ff85473227f39b3e83133d999 (diff)
adjusted agent to include UI control tool
Diffstat (limited to 'src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts')
-rw-r--r--src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts b/src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts
index 6568766c5..941b875a2 100644
--- a/src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts
+++ b/src/client/views/nodes/chatbot/tools/DocumentMetadataTool.ts
@@ -491,7 +491,7 @@ export class DocumentMetadataTool extends BaseTool<DocumentMetadataToolParamsTyp
constructor(docManager: AgentDocumentManager) {
super(documentMetadataToolInfo);
this._docManager = docManager;
- this._docManager.initializeFindDocsFreeform();
+ this._docManager.initializeDocuments();
}
/**
@@ -502,8 +502,8 @@ export class DocumentMetadataTool extends BaseTool<DocumentMetadataToolParamsTyp
async execute(args: ParametersType<DocumentMetadataToolParamsType>): Promise<Observation[]> {
console.log('DocumentMetadataTool: Executing with args:', args);
- // Find all documents in the Freeform view
- this._docManager.initializeFindDocsFreeform();
+ // Find all documents based on current mode (canvas or linked)
+ this._docManager.initializeDocuments();
try {
// Validate required input parameters based on action