aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ChatBox/tools/BaseTool.ts
diff options
context:
space:
mode:
authorA.J. Shulman <Shulman.aj@gmail.com>2024-07-10 16:35:11 -0400
committerA.J. Shulman <Shulman.aj@gmail.com>2024-07-10 16:35:11 -0400
commitaa8b1248408846d6a158f8df1c76fa3015ce3aac (patch)
treec0bf0d85b3f09a59e001bdc93963fc413222f942 /src/client/views/nodes/ChatBox/tools/BaseTool.ts
parentcab0311e2fd9a6379628c000d11ddcd805e01f64 (diff)
Fixing bugs and attempting to get it to work
Diffstat (limited to 'src/client/views/nodes/ChatBox/tools/BaseTool.ts')
-rw-r--r--src/client/views/nodes/ChatBox/tools/BaseTool.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/ChatBox/tools/BaseTool.ts b/src/client/views/nodes/ChatBox/tools/BaseTool.ts
index 3511d9528..903161bd5 100644
--- a/src/client/views/nodes/ChatBox/tools/BaseTool.ts
+++ b/src/client/views/nodes/ChatBox/tools/BaseTool.ts
@@ -1,6 +1,6 @@
import { Tool } from '../types';
-export abstract class BaseTool implements Tool {
+export abstract class BaseTool<T extends Record<string, any> = Record<string, any>> implements Tool<T> {
constructor(
public name: string,
public description: string,
@@ -9,7 +9,7 @@ export abstract class BaseTool implements Tool {
public briefSummary: string
) {}
- abstract execute(args: Record<string, any>): Promise<any>;
+ abstract execute(args: T): Promise<any>;
getActionRule(): Record<string, any> {
return {