Bu

Build event-driven workflows with Python async functions

Hacker News

Build event-driven workflows with Python async functions

I noticed the new feature of llama-index: the event-driven workflow[1], which allows for building agents based on LLMs. I think the concept of an event-driven workflow is cool, but I don't find the way llama-index implements it to be intuitive. Therefore, I wrote a simple prototype to demonstrate what I believe is the correct approach. It supports the following features with just a few lines of code: - Multi-Recv: it supports an event to listen on a group of other events(or self), and triggered only when the group of events produced the results - Parallel Execution: using python event loop - Dynamic dispatch: it's a cool feature I think. You can use signals like goto or abort to change the event's return behaviors. [1]: https://www.llamaindex.ai/blog/introducing-workflows-beta-a-...

Share card

Actual performance

3points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: agents, agent, new · Missing: mac, macos, cursor
83%83% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: supports, para · Missing: reddit linkedin, podcasting, created
64%64% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: llama, io · Missing: https docs, excited, just released
40%40% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: way, para · Missing: mobile apps, ios, personal
34%34% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: intuitive · Missing: plus, platform, reviews
31%31% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
16%16% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Un
Untwisted Supersockets and event-driven with asyncronicity in Python38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Untwisted Supersockets and event-driven with asyncronicity in Python

Hacker News1
(U
(Untwisted) A naive approach to event driven paradigm in Python46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

(Untwisted) A naive approach to event driven paradigm in Python

Hacker News1
Co
Comfy Nodekit – build/serialize ComfyUI workflows in Python46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Comfy Nodekit – build/serialize ComfyUI workflows in Python

Hacker News11
(U
(Untwisted) an event driven framework in python43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

(Untwisted) an event driven framework in python

Hacker News1
Au
AutoKitteh, Durable Workflows in Python63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AutoKitteh, Durable Workflows in Python

Hacker News4
Du
Durable Python Workflows63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Durable Python Workflows

Hacker News64
Br
BrachioGraph, an easy-to-build pen-plotter, driven by Python58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

BrachioGraph, an easy-to-build pen-plotter, driven by Python

Hacker News63
Sh
Show HN; (untwisted) a powerful event-driven framework in python54%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Show HN; (untwisted) a powerful event-driven framework in python

Hacker News1
Ev
Eventkit, event-driven data pipelines for Python43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Eventkit, event-driven data pipelines for Python

Hacker News6
A
A minimalist event driven framework for python.50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A minimalist event driven framework for python.

Hacker News19