mastra
Version:
cli for mastra
15 lines (14 loc) • 411 B
JavaScript
// @ts-ignore
import { scoreTracesWorkflow } from '@mastra/core/evals/scoreTraces';
import { mastra } from '#mastra';
import { createNodeServer, getToolExports } from '#server';
import { tools } from '#tools';
// @ts-ignore
await createNodeServer(mastra, {
studio: true,
isDev: true,
tools: getToolExports(tools),
});
if (mastra.getStorage()) {
mastra.__registerInternalWorkflow(scoreTracesWorkflow);
}