UNPKG

multimind-sdk

Version:

This SDK gives JavaScript/TypeScript developers full access to advanced AI features like agent orchestration, RAG, and fine-tuning — without needing to manage backend code.

23 lines 788 B
import { py } from './bridge/multimind-bridge.js'; export async function evaluateModel(config) { const { model, task, dataset = 'default', metrics = ['accuracy', 'f1'] } = config; try { const result = await py `evaluate(${model}, ${task}, dataset=${dataset}, metrics=${metrics})`; return result; } catch (error) { console.error('Error evaluating model:', error); throw error; } } export async function compareModels(models, task, dataset) { try { const result = await py `evaluate.compare_models(${models}, ${task}, dataset=${dataset || 'default'})`; return result; } catch (error) { console.error('Error comparing models:', error); throw error; } } //# sourceMappingURL=evaluation.js.map