UNPKG

@llamafarm/llamafarm

Version:

🌾 Plant and harvest AI models, agents, and databases into single deployable binaries

41 lines (31 loc) 1.07 kB
import { BaseEquipmentPlugin } from '../../../base'; export class {{NAME}}Plugin extends BaseEquipmentPlugin { name = '{{LOWERCASE_NAME}}'; version = '1.0.0'; category: '{{CATEGORY}}' = '{{CATEGORY}}'; // database, rag-pipeline, model-runtime, tool description = '{{DESCRIPTION}}'; author = '{{AUTHOR}}'; dependencies = []; // npm packages needed async install(): Promise<void> { console.log(`📦 Installing ${this.name}...`); // Installation logic here // e.g., download binaries, install npm packages } async configure(options: any): Promise<void> { console.log(`⚙️ Configuring ${this.name}...`); // Configuration logic here // e.g., create config files, set up directories } async test(): Promise<boolean> { console.log(`🧪 Testing ${this.name}...`); try { // Test logic here // Return true if tests pass, false otherwise return true; } catch (e) { console.error(`Test failed:`, e); return false; } } } export default new {{NAME}}Plugin();