diff options
| author | bobzel <zzzman@gmail.com> | 2024-09-30 12:19:22 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-09-30 12:19:22 -0400 |
| commit | 139a3cb0b3b081c270187e9b4ca281d04ca923bf (patch) | |
| tree | dd952f65f1bb53c29059fa22c2a38db8e0c47c47 /src/client/views/nodes/chatbot/tools/NoTool.ts | |
| parent | 04f1047d81bba00f9258543a8171683bce5272bb (diff) | |
upate AJ assistant from master and fix some lint errors
Diffstat (limited to 'src/client/views/nodes/chatbot/tools/NoTool.ts')
| -rw-r--r-- | src/client/views/nodes/chatbot/tools/NoTool.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/nodes/chatbot/tools/NoTool.ts b/src/client/views/nodes/chatbot/tools/NoTool.ts index 1f0830a77..edd3160ec 100644 --- a/src/client/views/nodes/chatbot/tools/NoTool.ts +++ b/src/client/views/nodes/chatbot/tools/NoTool.ts @@ -1,7 +1,7 @@ // tools/NoTool.ts import { BaseTool } from './BaseTool'; -export class NoTool extends BaseTool<{}> { +export class NoTool extends BaseTool<Record<string, unknown>> { constructor() { super( 'no_tool', @@ -12,7 +12,8 @@ export class NoTool extends BaseTool<{}> { ); } - async execute(args: {}): Promise<any> { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + async execute(args: object): Promise<unknown> { return [{ type: 'text', text: 'No tool used. Proceed with answering the question.' }]; } } |
