aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ChatBox/tools/NoTool.ts
blob: 1f0830a77f5e8b1574652b68ae76a62d191d9626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.' }];
    }
}