dashboard helpers and tools

This commit is contained in:
dal 2025-08-12 23:26:46 -06:00
parent d9e6c3dee2
commit eb14e26972
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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