🪢 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
refactor(web): Enable knip unused file checking (#16668)
Ben Bachem1fcdb778f393
diff --git a/knip.jsonc b/knip.jsoncindex c62bf69917..f46ad980e5 100644--- a/knip.jsonc+++ b/knip.jsonc@@ -5,16 +5,42 @@"catalog": "off",},"ignoreIssues": {- "web/**": ["files", "exports", "types"],- "packages/shared/**": ["files", "exports", "types"],- "worker/**": ["files", "exports", "types"],+ "web/**": ["exports", "types"],+ "packages/shared/**": ["exports", "types"],+ "worker/**": ["exports", "types"],},"workspaces": {+ "packages/shared": {+ "ignoreFiles": [+ // Standalone helper invoked manually as documented in the adjacent framework-traces README.+ "scripts/seeder/utils/framework-traces/merge-observations.ts",+ ],+ },"worker": {+ "ignoreFiles": [+ // Migration implementations are loaded dynamically from script names persisted in the database.+ "src/backgroundMigrations/!(backgroundMigrationManager|IBackgroundMigration).ts",+ // Shared only by background migration modules that Knip cannot discover through dynamic loading.+ "src/backgroundMigrations/utils/backfillBase.ts",+ // Standalone fixture downloader invoked manually as documented in the adjacent README.+ "src/__tests__/chatml/framework-traces/download_traces.js",+ // Updated by release-it even though worker runtime code does not import it.+ "src/constants/VERSION.ts",+ // Runtime worker entry loaded by filename through node:worker_threads in source environments.+ "src/features/tokenisation/worker-thread.js",+ // Compiled runtime worker entry loaded by filename through node:worker_threads.+ "src/features/tokenisation/worker-thread.ts",+ // Operational and maintenance scripts are invoked directly or through package scripts, not imported.+ "src/scripts/**/*.{ts,js}",+ ],// Tests intentionally load these from @langfuse/shared's dependency tree."ignoreDependencies": ["@aws-sdk/client-bedrock-runtime"],},"web": {+ "ignoreFiles": [+ // Standalone benchmark invoked directly with Node rather than imported by the application.+ "src/features/traces/components/AdvancedJsonViewer/lazy/benchByteJsonIndex.ts",+ ],// Include runtime JavaScript modules such as src/env.mjs in dependency analysis."project": ["src/**/*.{ts,tsx,mjs}"],"ignoreDependencies": [diff --git a/packages/shared/src/server/queries/types.ts b/packages/shared/src/server/queries/types.tsdeleted file mode 100644index 7830c0104d..0000000000--- a/packages/shared/src/server/queries/types.ts+++ /dev/null@@ -1,15 +0,0 @@-import z from "zod";-import { singleFilter } from "../../interfaces/filters";-import { orderBy } from "../../interfaces/orderBy";-import { optionalPaginationZod } from "../../utils/zod";--// eslint-disable-next-line @typescript-eslint/no-unused-vars-const TableFilterSchema = z.object({- projectId: z.string(),- filter: z.array(singleFilter).nullish(),- searchQuery: z.string().nullish(),- orderBy: orderBy,- ...optionalPaginationZod,-});--export type TableFilters = z.infer<typeof TableFilterSchema>;diff --git a/packages/shared/src/server/services/email/usageThresholdSuspension/UsageThresholdUpcomingEnforcementEmailTemplate.tsx b/packages/shared/src/server/services/email/usageThresholdSuspension/UsageThresholdUpcomingEnforcementEmailTemplate.tsxdeleted file mode 100644index 5ce610fad0..0000000000--- a/packages/shared/src/server/services/email/usageThresholdSuspension/UsageThresholdUpcomingEnforcementEmailTemplate.tsx+++ /dev/null@@ -1,182 +0,0 @@-import React from "react";-import {- Body,- Button,- Container,- Head,- Heading,- Hr,- Html,- Img,- Section,- Text,- Tailwind,- Preview,-} from "@react-email/components";--interface UsageThresholdUpcomingEnforcementEmailProps {- organizationName: string;- currentUsage: number;- limit: number;- billingUrl: string;- receiverEmail: string;- resetDate: string; // ISO date string-}--export const UsageThresholdUpcomingEnforcementEmailTemplate = ({- organizationName,- currentUsage,- limit,- billingUrl,- receiverEmail,- resetDate,-}: UsageThresholdUpcomingEnforcementEmailProps) => {- // Format reset date as "January 15, 2024"- const formattedResetDate = new Date(resetDate).toLocaleDateString("en-US", {- year: "numeric",- month: "long",- day: "numeric",- timeZone: "UTC",- });-- return (- <Html>- <Head />- <Preview>- 🚨 URGENT: Ingestion will be suspended for "{organizationName}- " - action required- </Preview>- <Tailwind>- <Body className="bg-background my-auto mx-auto font-sans">- <Container className="mx-auto my-10 w-[465px] rounded border border-solid border-[#eaeaea] p-5">- <Section className="mt-8">- <Img- src="https://static.langfuse.com/langfuse_logo_transactional_email.png"- width="40"- height="40"- alt="Langfuse"- className="mx-auto my-0"- />- </Section>-- <Section>- <Heading className="mx-0 my-[30px] p-0 text-center text-2xl font-normal text-black">- ⚠️ Action Required: Usage Limit Enforcement Begins Next Week- </Heading>- <Text className="text-gray-700 text-sm leading-6">- Your organization "{organizationName}" has exceeded- the <strong>{limit.toLocaleString()} event limit</strong> for- the free tier.- </Text>- <Text className="text-gray-700 text-sm leading-6 font-semibold">- Beginning next week, we will begin enforcing usage limits. Based- on your current usage, your account would be suspended and- ingestion would stop.- </Text>- </Section>-- <Section className="mt-8">- <div className="bg-orange-50 border border-orange-200 rounded-lg p-4 text-center">- <Text className="text-orange-600 text-sm font-medium m-0 mb-1">- Current Usage- </Text>- <Text className="text-3xl font-bold text-orange-700 m-0">- {currentUsage.toLocaleString()}- </Text>- <Text className="text-orange-600 text-xs m-0 mt-1">- Free tier limit: {limit.toLocaleString()} events- </Text>- </div>- </Section>-- <Section className="mt-8 text-center">- <Button- className="rounded bg-red-600 px-5 py-3 text-center text-xs font-semibold text-white no-underline"- href={billingUrl}- >- Upgrade Now to Ensure Uninterrupted Service- </Button>- </Section>-- <Section className="mt-8">- <Heading className="text-black text-[18px] font-semibold">- What happens beginning next week?- </Heading>- <Text className="text-gray-700 text-sm leading-6">- If you remain on the free tier and exceed the limit:- <br />- <br />•{" "}- <strong>- New traces, observations, and scores cannot be ingested- </strong>- <br />- • Existing data remains accessible- <br />- • Dashboard and analytics continue to work- <br />• API calls to ingestion endpoints will return 403 errors- </Text>- </Section>-- <Section className="mt-8">- <Heading className="text-black text-[18px] font-semibold">- How to avoid service disruption:- </Heading>- <Text className="text-gray-700 text-sm leading-6">- •{" "}- <strong>- Upgrade to a paid plan now to ensure uninterrupted operations- </strong>- <br />• Wait until your usage limit resets on{" "}- <strong>{formattedResetDate}</strong> (though you may exceed it- again)- <br />• Contact support for custom plans and enterprise options- </Text>- </Section>-- <Section className="mt-8">- <Heading className="text-black text-[18px] font-semibold">- Upgrade to Core at only $29/month- </Heading>- <Text className="text-gray-700 text-sm leading-6">- When you upgrade, you can:- <br />- • Add unlimited number of users- <br />- • Retain data for 90 days- <br />- • Access unlimited evaluators- <br />• Get support via Email/Chat- </Text>- <Text className="text-gray-700 text-sm leading-6 mt-4">- <strong>Startup Program:</strong> Eligible startups get 50% off- for their first year.{" "}- <a- href="https://langfuse.com/startups"- className="text-blue-600 underline"- >- Learn more →- </a>- </Text>- </Section>-- <Hr className="border border-solid border-[#eaeaea] my-[26px] mx-0 w-full" />-- <Section>- <Text className="text-[#666666] text-[12px] leading-[24px]">- This important notification was sent to {receiverEmail}{" "}- regarding upcoming usage enforcement for "- {organizationName}".- </Text>- <Text className="text-[#666666] text-[12px] leading-[24px]">- Need immediate help? Simply reply to this email and we'll- assist you right away.- </Text>- </Section>- </Container>- </Body>- </Tailwind>- </Html>- );-};--export default UsageThresholdUpcomingEnforcementEmailTemplate;diff --git a/web/src/features/experiments/index.ts b/web/src/features/experiments/index.tsdeleted file mode 100644index 2b8abacc0e..0000000000--- a/web/src/features/experiments/index.ts+++ /dev/null@@ -1 +0,0 @@-export { ExperimentEvaluatorAssignments } from "@/src/features/experiments/components/ExperimentEvaluatorAssignments/ExperimentEvaluatorAssignments";diff --git a/web/src/features/feature-flags/components/FeatureFlagToggle.tsx b/web/src/features/feature-flags/components/FeatureFlagToggle.tsxdeleted file mode 100644index 0f9e234ef2..0000000000--- a/web/src/features/feature-flags/components/FeatureFlagToggle.tsx+++ /dev/null@@ -1,41 +0,0 @@-import { type Flag } from "@/src/features/feature-flags/types";-import { type SessionContextValue, useSession } from "next-auth/react";--const isAdminOrExperimentalFeatures = (- session: SessionContextValue,-): boolean => {- const enableExperimentalFeatures =- session.data?.environment?.enableExperimentalFeatures ?? false;- const isAdmin = session.data?.user?.admin ?? false;-- return enableExperimentalFeatures || isAdmin;-};--const isWhitelistedForFeature = (- session: SessionContextValue,- featureFlag: Flag,-): boolean => {- const flags = session.data?.user?.featureFlags;- return flags?.[featureFlag] === true;-};--export const FeatureFlagToggle = (props: {- featureFlag: Flag;- whenEnabled?: React.ReactNode;- whenDisabled?: React.ReactNode;- whenLoading?: React.ReactNode;-}) => {- const session = useSession();-- if (isAdminOrExperimentalFeatures(session)) return props.whenEnabled ?? <></>;-- const isEnabled = isWhitelistedForFeature(session, props.featureFlag);-- if (session.status === "loading") {- return props.whenLoading ?? <div>Loading ...</div>;- }-- return isEnabled- ? (props.whenEnabled ?? <></>)- : (props.whenDisabled ?? <></>);-};diff --git a/web/src/features/mcp/features/annotationQueues/utils.ts b/web/src/features/mcp/features/annotationQueues/utils.tsdeleted file mode 100644index eccfd3234f..0000000000--- a/web/src/features/mcp/features/annotationQueues/utils.ts+++ /dev/null@@ -1,11 +0,0 @@-import { getAnnotationQueueRecordOrThrow } from "@/src/features/annotation-queues/server/publicAnnotationQueueService";--export const verifyAnnotationQueue = async ({- projectId,- queueId,-}: {- projectId: string;- queueId: string;-}) => {- return await getAnnotationQueueRecordOrThrow({ projectId, queueId });-};diff --git a/web/src/features/mcp/features/models/schema.ts b/web/src/features/mcp/features/models/schema.tsdeleted file mode 100644index d1a1444133..0000000000--- a/web/src/features/mcp/features/models/schema.ts+++ /dev/null@@ -1,18 +0,0 @@-export const modelPricingInclude = {- pricingTiers: {- select: {- id: true,- name: true,- isDefault: true,- priority: true,- conditions: true,- prices: {- select: {- usageType: true,- price: true,- },- },- },- orderBy: { priority: "asc" as const },- },-};diff --git a/web/src/features/v4-migration/V4MigrationModal.tsx b/web/src/features/v4-migration/V4MigrationModal.tsxdeleted file mode 100644index 15a3f6fbd5..0000000000--- a/web/src/features/v4-migration/V4MigrationModal.tsx+++ /dev/null@@ -1,74 +0,0 @@-import { useState } from "react";-import {- Dialog,- DialogBody,- DialogContent,- DialogTitle,-} from "@/src/components/ui/dialog";-import {- V4MigrationHeaderContent,- V4MigrationDetailsContent,-} from "@/src/features/v4-migration/V4MigrationContent";-import { useQueryProject } from "@/src/features/projects/hooks";-import { useV4UpgradeUiEnabled } from "@/src/features/v4-migration/useV4UpgradeUiEnabled";-import { api } from "@/src/utils/api";--// Modal variant of the migration panel (experiment): mounted on pages that-// use deprecated features (currently Evals) and opens on arrival.-export function V4MigrationModal() {- const { project } = useQueryProject();- const v4UpgradeUiEnabled = useV4UpgradeUiEnabled(project?.id);- const traceLevelEvalSummary = api.v4Transition.traceLevelEvalSummary.useQuery(- { projectId: project?.id ?? "" },- {- enabled: v4UpgradeUiEnabled && Boolean(project),- refetchOnWindowFocus: false,- staleTime: 5 * 60 * 1000,- },- );-- if (- !v4UpgradeUiEnabled ||- !project ||- !traceLevelEvalSummary.data?.traceLevelEvalCount- ) {- return null;- }-- // Keyed by project so a projectId-only navigation (which reuses the page- // instance) re-opens the modal instead of inheriting the dismissal.- return <V4MigrationModalContent key={project.id} project={project} />;-}--function V4MigrationModalContent({- project,-}: {- project: { id: string; name: string };-}) {- const [open, setOpen] = useState(true);-- return (- <Dialog open={open} onOpenChange={setOpen}>- <DialogContent- overlayMode="blocking"- overlayClassName="backdrop-blur-sm"- closeOnInteractionOutside- >- <DialogTitle className="sr-only">Upgrade to v4</DialogTitle>- <DialogBody className="gap-0 p-4">- <V4MigrationHeaderContent- // Clear the dialog's floating fallback close button (top-right).- titleRowClassName="pr-6"- readiness="action-needed"- />- <div className="mt-6 flex flex-col gap-6">- <V4MigrationDetailsContent- onNavigate={() => setOpen(false)}- projectId={project.id}- />- </div>- </DialogBody>- </DialogContent>- </Dialog>- );-}diff --git a/web/src/features/widgets/chart-library/HorizontalBarChart.tsx b/web/src/features/widgets/chart-library/HorizontalBarChart.tsxdeleted file mode 100644index 2741d52d5a..0000000000--- a/web/src/features/widgets/chart-library/HorizontalBarChart.tsx+++ /dev/null@@ -1,159 +0,0 @@-import React, { useCallback, useMemo } from "react";-import {- ChartContainer,- ChartTooltip,- ChartTooltipContent,-} from "@/src/components/ui/chart";-import {- Bar,- BarChart,- LabelList,- type RenderableText,- XAxis,- YAxis,-} from "recharts";-import { type ChartProps } from "@/src/features/widgets/chart-library/chart-props";-import {- formatAxisLabel,- formatMetric,- toFullMetricString,-} from "@/src/features/widgets/chart-library/utils";--const CHAR_WIDTH_PX = 7;-const LABEL_PADDING_PX = 16;--/**- * HorizontalBarChart component- * @param data - Data to be displayed. Expects an array of objects with dimension and metric properties.- * @param config - Configuration object for the chart. Can include theme settings for light and dark modes.- * @param accessibilityLayer - Boolean to enable or disable the accessibility layer. Default is true.- */-export const HorizontalBarChart: React.FC<ChartProps> = ({- data,- config = {- metric: {- theme: {- light: "hsl(var(--chart-1))",- dark: "hsl(var(--chart-1))",- },- },- },- accessibilityLayer = true,- showValueLabels = false,- metricFormatter = (value, options) => formatMetric(value, options),- subtleFill = false,-}) => {- const formatValue = useCallback(- (value: number) =>- toFullMetricString(metricFormatter(value, { style: "compact" })),- [metricFormatter],- );-- const rightMargin = useMemo(() => {- if (!showValueLabels || !data?.length) return 8;- const maxLabelLength = Math.max(- ...data.map((d) => {- const value =- typeof d.metric === "number" ? d.metric : Number(d.metric ?? 0);- return formatValue(value).length;- }),- );- return Math.min(- 120,- Math.max(20, maxLabelLength * CHAR_WIDTH_PX + LABEL_PADDING_PX),- );- }, [showValueLabels, data, formatValue]);-- return (- <ChartContainer- config={config}- className="min-h-0 w-full [&_.recharts-bar-rectangle:hover]:opacity-30 dark:[&_.recharts-bar-rectangle:hover]:opacity-100 dark:[&_.recharts-bar-rectangle:hover]:brightness-[3]"- >- <BarChart- accessibilityLayer={accessibilityLayer}- data={data}- layout="vertical"- margin={{- top: 4,- right: rightMargin,- bottom: 4,- left: 0,- }}- barCategoryGap="12%"- barGap={4}- >- <XAxis- type="number"- stroke="hsl(var(--chart-grid))"- fontSize={12}- tickLine={false}- axisLine={false}- niceTicks="auto"- tickFormatter={(value) => formatValue(Number(value))}- />- <YAxis- type="category"- dataKey="dimension"- stroke="hsl(var(--chart-grid))"- fontSize={12}- tickLine={false}- axisLine={false}- width={120}- tick={({ x, y, payload }) => {- const fullLabel =- typeof payload === "string"- ? payload- : ((payload as { value?: string })?.value ?? String(payload));- return (- <g transform={`translate(${x},${y})`}>- <title>{fullLabel}</title>- <text- textAnchor="end"- x={0}- y={0}- dy={4}- fill="hsl(var(--muted-foreground))"- fontSize={12}- >- {formatAxisLabel(fullLabel)}- </text>- </g>- );- }}- />- <Bar- dataKey="metric"- radius={[0, 4, 4, 0]}- maxBarSize={28}- className="fill-(--color-metric)"- fillOpacity={subtleFill ? 0.3 : 1}- isAnimationActive={false}- >- {showValueLabels ? (- <LabelList- dataKey="metric"- position="right"- formatter={(value: RenderableText) =>- formatValue(Number(value ?? 0))- }- className="fill-muted-foreground"- style={{ fontSize: 12 }}- />- ) : null}- </Bar>- <ChartTooltip- cursor={false}- contentStyle={{ backgroundColor: "hsl(var(--background))" }}- content={({ active, payload, label }) => (- <ChartTooltipContent- active={active}- payload={payload}- label={label}- valueFormatter={(v) => formatValue(Number(v))}- />- )}- />- </BarChart>- </ChartContainer>- );-};diff --git a/web/src/server/api/services/tableDefinitions.ts b/web/src/server/api/services/tableDefinitions.tsdeleted file mode 100644index 28e00945b4..0000000000--- a/web/src/server/api/services/tableDefinitions.ts+++ /dev/null@@ -1,289 +0,0 @@-import { type ColumnDefinition, type TableDefinitions } from "@langfuse/shared";--export const completionTokens = {- name: "completionTokens",- id: "completionTokens",- type: "number",- internal: 'o."completion_tokens"',-} as const;-export const observationId = {- name: "observationId",- id: "observationId",- type: "string",- internal: 'o."id"',-} as const;-export const observationName = {- name: "name",- id: "name",- type: "string",- internal: 'o."name"',-} as const;-export const startTime = {- name: "startTime",- id: "startTime",- type: "datetime",- internal: 'o."start_time"',-} as const;-export const traceId = {- name: "traceId",- id: "traceId",- type: "string",- internal: 't."id"',-} as const;-export const traceVersion = {- name: "Version",- id: "version",- type: "string",- internal: 't."version"',-} as const;-export const traceTimestamp = {- name: "timestamp",- id: "timestamp",- type: "string",- internal: 't."timestamp"',-} as const;-const scoreTimestamp = {- name: "scoreTimestamp",- id: "scoreTimestamp",- type: "string",- internal: 's."timestamp"',-} as const;-export const scoreName = {- name: "scoreName",- id: "scoreName",- type: "string",- internal: 's."name"',-} as const;-export const duration = {- name: "duration",- id: "duration",- type: "number",- internal:- 'EXTRACT(EPOCH FROM o."end_time") - EXTRACT(EPOCH FROM o."start_time")',-} as const;-export const release = {- name: "Release",- id: "release",- type: "string",- internal: 't."release"',-} as const;-export const tracesProjectId = {- name: "tracesProjectId",- id: "tracesProjectId",- type: "string",- internal: 't."project_id"',-} as const;-export const observationsProjectId = {- name: "observationsProjectId",- id: "observationsProjectId",- type: "string",- internal: 'o."project_id"',-} as const;-const scoreId = {- name: "scoreId",- id: "scoreId",- type: "string",- internal: 's."id"',-} as const;-const scoreSource = {- name: "scoreSource",- id: "scoreSource",- type: "string",- internal: 's."source"::text',-} as const;-const scoreDataType = {- name: "scoreDataType",- id: "scoreDataType",- type: "string",- internal: 's."data_type"::text',-} as const;-const scoreStringValue = {- name: "stringValue",- id: "stringValue",- type: "string",- internal: 's."string_value"',-} as const;-export const traceName = {- name: "Trace Name",- id: "traceName",- type: "string",- internal: 't."name"',-} as const;-export const totalTokens = {- name: "totalTokens",- id: "totalTokens",- type: "number",- internal: 'o."total_tokens"',-} as const;-export const model = {- name: "model",- id: "model",- type: "string",- internal: 'o."model"',-} as const;-export const traceUser = {- name: "User",- id: "user",- type: "string",- internal: 't."user_id"',-} as const;--export const calculatedTotalCost = {- name: "calculatedTotalCost",- id: "calculatedTotalCost",- type: "number",- internal: 'o."calculated_total_cost"',-} as const;--export const traceTags = {- name: "Tags",- id: "tags",- type: "string",- internal: 't."tags"',-} as const;--const tracesObservationsColumns: ColumnDefinition[] = [- traceId,- observationId,- { name: "type", id: "type", type: "string", internal: 'o."type"' },- tracesProjectId,- observationsProjectId,- duration,- totalTokens,- calculatedTotalCost,- model,- traceTimestamp,- traceUser,- startTime,- traceName,- observationName,- traceTags,- release,- traceVersion,-];--const tracesColumns = [- tracesProjectId,- traceVersion,- release,- traceId,- traceTimestamp,- traceName,- traceUser,- traceTags,-];--export const tableDefinitions: TableDefinitions = {- traces: {- table: ` traces t`,- columns: tracesColumns,- },- traces_observations: {- table: ` traces t LEFT JOIN observations o ON t.id = o.trace_id`,- columns: tracesObservationsColumns,- },- traces_observationsview: {- table: ` traces t LEFT JOIN observations_view o ON t.id = o.trace_id`,- columns: [...tracesObservationsColumns, calculatedTotalCost],- },- observations: {- table: ` observations_view o`,- columns: [- traceId,- calculatedTotalCost,- observationName,- { name: "type", id: "type", type: "string", internal: 'o."type"' },- completionTokens,- {- name: "promptTokens",- type: "number",- id: "promptTokens",- internal: 'o."prompt_tokens"',- },- totalTokens,- observationId,- model,- observationsProjectId,- startTime,- {- name: "endTime",- id: "endTime",- type: "datetime",- internal: 'o."end_time"',- },- duration,- ],- },- traces_metrics: {- table: `traces_view t`,- columns: [- ...tracesColumns,- {- name: "duration",- id: "duration",- type: "number",- internal: '"duration"',- },- ],- },- traces_scores: {- table: ` traces t JOIN scores s ON t.id = s.trace_id AND t.project_id = s.project_id`,- columns: [- tracesProjectId,- { name: "value", id: "value", type: "number", internal: 's."value"' },- scoreSource,- scoreDataType,- scoreStringValue,- scoreId,- traceVersion,- scoreTimestamp,- traceTimestamp,- release,- scoreName,- traceUser,- tracesProjectId,- traceName,- traceTags,- ],- },-- traces_parent_observation_scores: {- table: ` traces t LEFT JOIN observations_view o on t."id" = o."trace_id" and o."parent_observation_id" is NULL AND t.project_id = o.project_id LEFT JOIN scores s ON t."id" = s."trace_id" AND t.project_id = s.project_id`,- columns: [- {- name: "projectId",- id: "projectId",- type: "string",- internal: 't."project_id"',- },- { name: "value", id: "value", type: "number", internal: 's."value"' },- {- name: "name",- id: "name",- type: "number",- internal: 's."name"',- },- traceVersion,- traceTimestamp,- scoreName,- duration,- release,- tracesProjectId,- observationsProjectId,- traceTags,- ],- },-- // definition required only for internal mapping of dataset eval filters- dataset_items: {- table: ` dataset_items di`,- columns: [- {- name: "Dataset",- id: "datasetId",- type: "string",- internal: 'di."dataset_id"',- },- ],- },-};diff --git a/web/src/utils/chatml/adapters/aisdk.ts b/web/src/utils/chatml/adapters/aisdk.tsdeleted file mode 100644index 1987322349..0000000000--- a/web/src/utils/chatml/adapters/aisdk.ts+++ /dev/null@@ -1 +0,0 @@-export { aisdkAdapter } from "@langfuse/shared";diff --git a/web/src/utils/chatml/adapters/gemini.ts b/web/src/utils/chatml/adapters/gemini.tsdeleted file mode 100644index 11437c9c2b..0000000000--- a/web/src/utils/chatml/adapters/gemini.ts+++ /dev/null@@ -1 +0,0 @@-export { geminiAdapter } from "@langfuse/shared";diff --git a/web/src/utils/chatml/adapters/generic.ts b/web/src/utils/chatml/adapters/generic.tsdeleted file mode 100644index d17864b59a..0000000000--- a/web/src/utils/chatml/adapters/generic.ts+++ /dev/null@@ -1 +0,0 @@-export { genericAdapter } from "@langfuse/shared";diff --git a/web/src/utils/chatml/adapters/langgraph.ts b/web/src/utils/chatml/adapters/langgraph.tsdeleted file mode 100644index a42349bb5a..0000000000--- a/web/src/utils/chatml/adapters/langgraph.ts+++ /dev/null@@ -1 +0,0 @@-export { langgraphAdapter } from "@langfuse/shared";diff --git a/web/src/utils/chatml/adapters/microsoft-agent.ts b/web/src/utils/chatml/adapters/microsoft-agent.tsdeleted file mode 100644index b8da7ff92c..0000000000--- a/web/src/utils/chatml/adapters/microsoft-agent.ts+++ /dev/null@@ -1 +0,0 @@-export { microsoftAgentAdapter } from "@langfuse/shared";diff --git a/web/src/utils/chatml/adapters/openai.ts b/web/src/utils/chatml/adapters/openai.tsdeleted file mode 100644index 32e6acedb5..0000000000--- a/web/src/utils/chatml/adapters/openai.ts+++ /dev/null@@ -1 +0,0 @@-export { openAIAdapter } from "@langfuse/shared";diff --git a/web/src/utils/chatml/adapters/pydantic-ai.ts b/web/src/utils/chatml/adapters/pydantic-ai.tsdeleted file mode 100644index c4ce5301fe..0000000000--- a/web/src/utils/chatml/adapters/pydantic-ai.ts+++ /dev/null@@ -1 +0,0 @@-export { pydanticAIAdapter } from "@langfuse/shared";diff --git a/web/src/utils/chatml/helpers.ts b/web/src/utils/chatml/helpers.tsdeleted file mode 100644index 65150e28dc..0000000000--- a/web/src/utils/chatml/helpers.ts+++ /dev/null@@ -1,8 +0,0 @@-export {- removeNullFields,- stringifyToolCallArgs,- stringifyToolResultContent,- isRichToolResult,- parseMetadata,- getNestedProperty,-} from "@langfuse/shared";diff --git a/web/src/utils/chatml/types.ts b/web/src/utils/chatml/types.tsdeleted file mode 100644index 916e760aae..0000000000--- a/web/src/utils/chatml/types.ts+++ /dev/null@@ -1,5 +0,0 @@-export type {- NormalizerContext,- ProviderAdapter,- ToolEvent,-} from "@langfuse/shared";