aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/chatbot/tools/NoTool.ts
diff options
context:
space:
mode:
authorA.J. Shulman <Shulman.aj@gmail.com>2024-12-18 11:46:14 -0500
committerA.J. Shulman <Shulman.aj@gmail.com>2024-12-18 11:46:14 -0500
commitad1e0cf62187e0f8bbb19b4720b7681585361de9 (patch)
tree673dd63ddc1808e6e89dab5021c2136cbbe843c8 /src/client/views/nodes/chatbot/tools/NoTool.ts
parent9e447814b551c352709296ae562f1f50480320f5 (diff)
better
Diffstat (limited to 'src/client/views/nodes/chatbot/tools/NoTool.ts')
-rw-r--r--src/client/views/nodes/chatbot/tools/NoTool.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/client/views/nodes/chatbot/tools/NoTool.ts b/src/client/views/nodes/chatbot/tools/NoTool.ts
index 5d652fd8d..40cc428b5 100644
--- a/src/client/views/nodes/chatbot/tools/NoTool.ts
+++ b/src/client/views/nodes/chatbot/tools/NoTool.ts
@@ -1,14 +1,21 @@
import { BaseTool } from './BaseTool';
import { Observation } from '../types/types';
-import { ParametersType } from '../types/tool_types';
+import { ParametersType, ToolInfo } from '../types/tool_types';
const noToolParams = [] as const;
type NoToolParamsType = typeof noToolParams;
+const noToolInfo: ToolInfo<NoToolParamsType> = {
+ name: 'noTool',
+ description: 'A placeholder tool that performs no action to use when no action is needed but to complete the loop.',
+ parameterRules: noToolParams,
+ citationRules: 'No citation needed.',
+};
+
export class NoTool extends BaseTool<NoToolParamsType> {
constructor() {
- super('noTool', 'A placeholder tool that performs no action', noToolParams, 'This tool does not require any input or perform any action.', 'Does nothing.');
+ super(noToolInfo);
}
async execute(args: ParametersType<NoToolParamsType>): Promise<Observation[]> {