Góc nhìn của một backend engineer sau vài tháng nhét agent vào production -------------------------------------------------------------------------------- Mở đầu: agent thực ra rất nhỏ Trước khi bàn "chạy ở đâu", cần thống nhất "chạy cái gì". Bỏ hết marketing đi, một AI agent chỉ là vòng lặp này: async function agentLoop(messages: Message[], tools: Tool[]) { while (true) { const res = await llm.createMessage({ messages, tools }); messages.push({ role: 'assistant', content: res.cont ... »
