command/bin/bash -lc "nl -ba 'app/(chat)/api/chat/route.ts' | sed -n '90,190p'"
exit code 0
Output: 90 { ...userMessage, id: userMessageId, createdAt: new Date(), chatId: id }, 91 ], 92 }); 93 94 return createDataStreamResponse({ 95 execute: async (dataStream) => { 96 // Initialize the financial tools manager 97 const financialToolsManager = new FinancialToolsManager({ 98 financialDatasetsApiKey: financialDatasetsApiKey!, 99 dataStream, 100 }); 101 dataStream.writeData({ 102 type: 'user-message-id', 103 content: userMessageId, 104 }); 105 106 dataStream.writeData({ 107 type: 'query-loading', 108 content: { 109 isLoading: true, 110 taskNames: [] 111 } 112 }); 113 114 const { object } = await generateObject({ 115 model: customModel('gpt-4.1-nano-2025-04-14', modelApiKey), 116 output: 'array', 117 schema: z.object({ 118 task_name: z.string(), 119 class: z 120 .string() 121 .describe('The name of the sub-task'), 122 }), 123 prompt: `You are a financial reasoning agent. 124 Given the follow