aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/chatbot/tools/BaseTool.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/BaseTool.ts
parent04f1047d81bba00f9258543a8171683bce5272bb (diff)
upate AJ assistant from master and fix some lint errors
Diffstat (limited to 'src/client/views/nodes/chatbot/tools/BaseTool.ts')
-rw-r--r--src/client/views/nodes/chatbot/tools/BaseTool.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/nodes/chatbot/tools/BaseTool.ts b/src/client/views/nodes/chatbot/tools/BaseTool.ts
index b57f1c8e4..10780617b 100644
--- a/src/client/views/nodes/chatbot/tools/BaseTool.ts
+++ b/src/client/views/nodes/chatbot/tools/BaseTool.ts
@@ -1,17 +1,17 @@
import { Tool } from '../types/types';
-export abstract class BaseTool<T extends Record<string, any> = Record<string, any>> implements Tool<T> {
+export abstract class BaseTool<T extends Record<string, unknown> = Record<string, unknown>> implements Tool<T> {
constructor(
public name: string,
public description: string,
- public parameters: Record<string, any>,
+ public parameters: Record<string, unknown>,
public citationRules: string,
public briefSummary: string
) {}
- abstract execute(args: T): Promise<any>;
+ abstract execute(args: T): Promise<unknown>;
- getActionRule(): Record<string, any> {
+ getActionRule(): Record<string, unknown> {
return {
[this.name]: {
name: this.name,