UNPKG

rete-kit

Version:

Rete.js Kit ==== [![Made in Ukraine](https://img.shields.io/badge/made_in-ukraine-ffd700.svg?labelColor=0057b7)](https://stand-with-ukraine.pp.ua) [![Discord](https://img.shields.io/discord/1081223198055604244?color=%237289da&label=Discord)](https://disco

24 lines (23 loc) 829 B
import { InstructionFile } from '../contexts/base'; import { AIAssets } from '../filesystem'; import { InstructionStrategy } from '../strategies'; export interface Tool { getName(): string; getAssetPath(): string; apply(aiAssets: AIAssets, instructionFiles: (InstructionFile & { path: string; contextId: string; })[], force?: boolean): Promise<void>; } export declare abstract class BaseTool implements Tool { protected name: string; protected assetPath: string; constructor(name: string, assetPath: string); getName(): string; getAssetPath(): string; protected getStrategy(): InstructionStrategy | undefined; apply(aiAssets: AIAssets, instructionFiles: (InstructionFile & { path: string; contextId: string; })[], force?: boolean): Promise<void>; }