diff options
Diffstat (limited to 'src/client/views/nodes/ChatBox/tools/BaseTool.ts')
| -rw-r--r-- | src/client/views/nodes/ChatBox/tools/BaseTool.ts | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/client/views/nodes/ChatBox/tools/BaseTool.ts b/src/client/views/nodes/ChatBox/tools/BaseTool.ts deleted file mode 100644 index 2e2267653..000000000 --- a/src/client/views/nodes/ChatBox/tools/BaseTool.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Tool } from '../types'; - -export abstract class BaseTool<T extends Record<string, any> = Record<string, any>> implements Tool<T> { - constructor( - public name: string, - public description: string, - public parameters: Record<string, any>, - public citationRules: string, - public briefSummary: string - ) {} - - abstract execute(args: T): Promise<any>; - - getActionRule(): Record<string, any> { - return { - [this.name]: { - name: this.name, - citationRules: this.citationRules, - description: this.description, - parameters: this.parameters, - }, - }; - } -} |
