Event Triggers บน Garudust
Garudust has introduced a core feature that allows various external systems to trigger events through a single call. This functionality is facilitated by a webhook adapter that processes incoming requests and executes tasks asynchronously. The article outlines how this system works, including security measures and practical use cases for event triggers.
- ▪Garudust's core functionality revolves around a single call: agent.run(task), which can be triggered by any external system capable of sending an HTTP POST request.
- ▪The webhook adapter opens an Axum HTTP server to handle incoming requests, allowing for various use cases such as billing email monitoring and GitHub PR reviews.
- ▪Garudust employs HMAC-SHA256 signatures for security, rejecting requests without valid signatures and blocking callback URLs that point to private IP addresses.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 408531) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Garudust Posted on May 23 • Originally published at dev.to Event Triggers บน Garudust #rust #ai #agents #opensource core ของ Garudust เปิดเผย primitive พื้นฐานตัวเดียว: agent.run(task) ทุก entry point — ไม่ว่าจะเป็นข้อความจากแชท, cron job, หรือ webhook call — ล้วนลงเอยที่ call เดียวกันนี้ทั้งสิ้น นั่นหมายความว่าระบบภายนอกใดก็ตามที่ส่ง HTTP POST ได้ ก็สามารถเป็น event trigger ให้ Garudust ได้เลย บทความนี้จะอธิบายว่ามันทำงานอย่างไรในปัจจุบัน, pattern ที่ใช้งานได้จริงใน production และ…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).