From 0f97741e52dc2343070e970bbbc966c6a05df0ca Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 8 Jul 2025 17:35:50 +0000 Subject: [PATCH] Convert column names to lowercase in metrics file creation tools Co-authored-by: dallin --- .../src/tools/visualization-tools/create-metrics-file-tool.ts | 2 +- .../src/tools/visualization-tools/modify-metrics-file-tool.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ai/src/tools/visualization-tools/create-metrics-file-tool.ts b/packages/ai/src/tools/visualization-tools/create-metrics-file-tool.ts index e7dbf2c5c..d9d04b67e 100644 --- a/packages/ai/src/tools/visualization-tools/create-metrics-file-tool.ts +++ b/packages/ai/src/tools/visualization-tools/create-metrics-file-tool.ts @@ -153,7 +153,7 @@ function createDataMetadata(results: Record[]): DataMetadata { const uniqueValues = new Set(values).size; columnMetadata.push({ - name: columnName, + name: columnName.toLowerCase(), min_value: minValue, max_value: maxValue, unique_values: uniqueValues, diff --git a/packages/ai/src/tools/visualization-tools/modify-metrics-file-tool.ts b/packages/ai/src/tools/visualization-tools/modify-metrics-file-tool.ts index 61514e918..c327ada7e 100644 --- a/packages/ai/src/tools/visualization-tools/modify-metrics-file-tool.ts +++ b/packages/ai/src/tools/visualization-tools/modify-metrics-file-tool.ts @@ -145,7 +145,7 @@ function createDataMetadata(results: Record[]): DataMetadata { const uniqueValues = new Set(values).size; columnMetadata.push({ - name: columnName, + name: columnName.toLowerCase(), min_value: minValue, max_value: maxValue, unique_values: uniqueValues,