From ccfdf905400cd4b81d8cde0f16bb0e15cd65621b Mon Sep 17 00:00:00 2001 From: "A.J. Shulman" Date: Wed, 11 Jun 2025 13:22:58 -0400 Subject: improved agent tool generation --- .../chatbot/tools/dynamic/CharacterCountTool.ts | 33 ---------------------- 1 file changed, 33 deletions(-) delete mode 100644 src/client/views/nodes/chatbot/tools/dynamic/CharacterCountTool.ts (limited to 'src/client/views/nodes/chatbot/tools/dynamic/CharacterCountTool.ts') diff --git a/src/client/views/nodes/chatbot/tools/dynamic/CharacterCountTool.ts b/src/client/views/nodes/chatbot/tools/dynamic/CharacterCountTool.ts deleted file mode 100644 index 38fed231c..000000000 --- a/src/client/views/nodes/chatbot/tools/dynamic/CharacterCountTool.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Observation } from '../../types/types'; -import { ParametersType, ToolInfo } from '../../types/tool_types'; -import { BaseTool } from '../BaseTool'; - -const characterCountParams = [ - { - name: 'text', - type: 'string', - description: 'The text to count characters in', - required: true - } - ] as const; - - type CharacterCountParamsType = typeof characterCountParams; - - const characterCountInfo: ToolInfo = { - name: 'charactercount', - description: 'Counts characters in text, excluding spaces', - citationRules: 'No citation needed.', - parameterRules: characterCountParams - }; - - export class CharacterCountTool extends BaseTool { - constructor() { - super(characterCountInfo); - } - - async execute(args: ParametersType): Promise { - const { text } = args; - const count = text ? text.replace(/\s/g, '').length : 0; - return [{ type: 'text', text: `Character count (excluding spaces): ${count}` }]; - } - } \ No newline at end of file -- cgit v1.2.3-70-g09d2