From eb14e26972723c765f5dad1bd406e7c0bc67450b Mon Sep 17 00:00:00 2001 From: dal Date: Tue, 12 Aug 2025 23:26:46 -0600 Subject: [PATCH] dashboard helpers and tools --- .../helpers/create-dashboards-tool-transform-helper.ts | 4 ++-- .../helpers/modify-dashboards-transform-helper.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/ai/src/tools/visualization-tools/dashboards/create-dashboards-tool/helpers/create-dashboards-tool-transform-helper.ts b/packages/ai/src/tools/visualization-tools/dashboards/create-dashboards-tool/helpers/create-dashboards-tool-transform-helper.ts index d53578c10..a129a948a 100644 --- a/packages/ai/src/tools/visualization-tools/dashboards/create-dashboards-tool/helpers/create-dashboards-tool-transform-helper.ts +++ b/packages/ai/src/tools/visualization-tools/dashboards/create-dashboards-tool/helpers/create-dashboards-tool-transform-helper.ts @@ -3,7 +3,7 @@ import type { ChatMessageReasoningMessage_File, } from '@buster/server-shared/chats'; import type { ModelMessage } from 'ai'; -import { CREATE_DASHBOARD_TOOL_NAME, type CreateDashboardsState } from '../create-dashboards-tool'; +import { CREATE_DASHBOARDS_TOOL_NAME, type CreateDashboardsState } from '../create-dashboards-tool'; /** * Create a reasoning entry for create-dashboards tool @@ -67,7 +67,7 @@ export function createCreateDashboardsRawLlmMessageEntry( { type: 'tool-call', toolCallId, - toolName: CREATE_DASHBOARD_TOOL_NAME, + toolName: CREATE_DASHBOARDS_TOOL_NAME, input: { files: state.files .filter((file) => file != null) // Filter out null/undefined entries first diff --git a/packages/ai/src/tools/visualization-tools/dashboards/modify-dashboards-tool/helpers/modify-dashboards-transform-helper.ts b/packages/ai/src/tools/visualization-tools/dashboards/modify-dashboards-tool/helpers/modify-dashboards-transform-helper.ts index 4efe763c7..446af1b21 100644 --- a/packages/ai/src/tools/visualization-tools/dashboards/modify-dashboards-tool/helpers/modify-dashboards-transform-helper.ts +++ b/packages/ai/src/tools/visualization-tools/dashboards/modify-dashboards-tool/helpers/modify-dashboards-transform-helper.ts @@ -3,7 +3,7 @@ import type { ChatMessageReasoningMessage_File, } from '@buster/server-shared/chats'; import type { ModelMessage } from 'ai'; -import { type ModifyDashboardsState, TOOL_NAME } from '../modify-dashboards-tool'; +import { type ModifyDashboardsState, MODIFY_DASHBOARDS_TOOL_NAME } from '../modify-dashboards-tool'; /** * Create a reasoning entry for modify-dashboards tool @@ -67,7 +67,7 @@ export function createModifyDashboardsRawLlmMessageEntry( { type: 'tool-call', toolCallId, - toolName: TOOL_NAME, + toolName: MODIFY_DASHBOARDS_TOOL_NAME, input: { files: state.files .filter((file) => file != null) // Filter out null/undefined entries first