import { BaseTool } from './BaseTool'; import { Observation } from '../types/types'; import { ParametersType, ToolInfo } from '../types/tool_types'; const noToolParams = [] as const; type NoToolParamsType = typeof noToolParams; const noToolInfo: ToolInfo = { 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 { constructor() { super(noToolInfo); } async execute(args: ParametersType): Promise { // Since there are no parameters, args will be an empty object return [{ type: 'text', text: 'This tool does nothing.' }]; } }