🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
import { env } from "@/src/env.mjs";
import type { McpFeatureModule } from "../registry";
import {
getMetricsSchemaTool,
handleGetMetricsSchema,
} from "./tools/getMetricsSchema";
import { queryMetricsTool, handleQueryMetrics } from "./tools/queryMetrics";
export const metricsFeature = {
name: "metrics",
description:
"Analyze project usage, quality, cost, and performance metrics from Langfuse data",
tools: [
{
definition: queryMetricsTool,
handler: handleQueryMetrics,
},
{
definition: getMetricsSchemaTool,
handler: handleGetMetricsSchema,
},
],
isEnabled: async () =>
env.LANGFUSE_MIGRATION_V4_ALLOW_PREVIEW_OPT_IN === "true",
} as const satisfies McpFeatureModule;