สร้าง AI Agent ด้วย Node.js + Claude API — Function Calling & Tool Use Build AI Agent with Node.js + Claude API — Function Calling & Tool Use
ตัวอย่าง Agent ที่ค้นหาข้อมูล เรียก API และตัดสินใจอัตโนมัติ พร้อม streaming response Example Agent that searches data, calls APIs and makes decisions automatically with streaming response
AI Agent คือโปรแกรมที่ใช้ LLM เป็น brain ในการตัดสินใจและเรียกใช้ tools ต่างๆ เพื่อทำงานให้สำเร็จ
Function Calling
Claude API รองรับ tool use ซึ่งช่วยให้ Agent สามารถเรียกฟังก์ชันที่เรากำหนดได้
AI Agent is a program that uses LLM as its brain to make decisions and call various tools to complete tasks.