diff --git a/packages/ai/src/tools/visualization-tools/dashboards/create-dashboards-tool/create-dashboards-execute.ts b/packages/ai/src/tools/visualization-tools/dashboards/create-dashboards-tool/create-dashboards-execute.ts index 796f3956b..5174ef999 100644 --- a/packages/ai/src/tools/visualization-tools/dashboards/create-dashboards-tool/create-dashboards-execute.ts +++ b/packages/ai/src/tools/visualization-tools/dashboards/create-dashboards-tool/create-dashboards-execute.ts @@ -513,6 +513,13 @@ export function createCreateDashboardsExecute( const reasoningEntry = createCreateDashboardsReasoningEntry(state, toolCallId); const rawLlmMessage = createCreateDashboardsRawLlmMessageEntry(state, toolCallId); + const rawLlmResultEntry = createRawToolResultEntry( + toolCallId, + CREATE_DASHBOARDS_TOOL_NAME, + { + files: state.files, + } + ); const updates: Parameters[0] = { messageId: context.messageId, @@ -523,7 +530,7 @@ export function createCreateDashboardsExecute( } if (rawLlmMessage) { - updates.rawLlmMessages = [rawLlmMessage]; + updates.rawLlmMessages = [rawLlmMessage, rawLlmResultEntry]; } if (reasoningEntry || rawLlmMessage) {