aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ChatBox/tools/NoTool.ts
diff options
context:
space:
mode:
authorA.J. Shulman <Shulman.aj@gmail.com>2024-07-17 14:58:46 -0400
committerA.J. Shulman <Shulman.aj@gmail.com>2024-07-17 14:58:46 -0400
commitdd379c9e4c4c214b2ed14e3fd9a5f966e4f03b48 (patch)
tree1fcf384c00279bfb0e54e31a53d72e3991bed657 /src/client/views/nodes/ChatBox/tools/NoTool.ts
parent0340c24eccce3d90c03934dec14d574128fb32ef (diff)
working on rendering MarkDown and added NoTool
Diffstat (limited to 'src/client/views/nodes/ChatBox/tools/NoTool.ts')
-rw-r--r--src/client/views/nodes/ChatBox/tools/NoTool.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/client/views/nodes/ChatBox/tools/NoTool.ts b/src/client/views/nodes/ChatBox/tools/NoTool.ts
new file mode 100644
index 000000000..1f0830a77
--- /dev/null
+++ b/src/client/views/nodes/ChatBox/tools/NoTool.ts
@@ -0,0 +1,18 @@
+// tools/NoTool.ts
+import { BaseTool } from './BaseTool';
+
+export class NoTool extends BaseTool<{}> {
+ constructor() {
+ super(
+ 'no_tool',
+ 'Use this when no external tool or action is required to answer the question.',
+ {},
+ 'When using the "no_tool" action, simply provide an empty <action_input> element. The observation will always be "No tool used. Proceed with answering the question."',
+ 'Use when no external tool or action is required to answer the question.'
+ );
+ }
+
+ async execute(args: {}): Promise<any> {
+ return [{ type: 'text', text: 'No tool used. Proceed with answering the question.' }];
+ }
+}