aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/chatbot/tools/SearchTool.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-09-30 12:19:22 -0400
committerbobzel <zzzman@gmail.com>2024-09-30 12:19:22 -0400
commit139a3cb0b3b081c270187e9b4ca281d04ca923bf (patch)
treedd952f65f1bb53c29059fa22c2a38db8e0c47c47 /src/client/views/nodes/chatbot/tools/SearchTool.ts
parent04f1047d81bba00f9258543a8171683bce5272bb (diff)
upate AJ assistant from master and fix some lint errors
Diffstat (limited to 'src/client/views/nodes/chatbot/tools/SearchTool.ts')
-rw-r--r--src/client/views/nodes/chatbot/tools/SearchTool.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/views/nodes/chatbot/tools/SearchTool.ts b/src/client/views/nodes/chatbot/tools/SearchTool.ts
index b926cbadc..3a4668422 100644
--- a/src/client/views/nodes/chatbot/tools/SearchTool.ts
+++ b/src/client/views/nodes/chatbot/tools/SearchTool.ts
@@ -1,7 +1,6 @@
-import { max } from 'lodash';
+import { v4 as uuidv4 } from 'uuid';
import { Networking } from '../../../../Network';
import { BaseTool } from './BaseTool';
-import { v4 as uuidv4 } from 'uuid';
export class SearchTool extends BaseTool<{ query: string | string[] }> {
private _addLinkedUrlDoc: (url: string, id: string) => void;
@@ -25,7 +24,7 @@ export class SearchTool extends BaseTool<{ query: string | string[] }> {
this._max_results = max_results;
}
- async execute(args: { query: string | string[] }): Promise<any> {
+ async execute(args: { query: string | string[] }): Promise<unknown> {
const queries = Array.isArray(args.query) ? args.query : [args.query];
const allResults = [];