In workflows, how can i dispatch an event (i.e using send_event) to two methods of same signature (add(self, ev: ProcessEvent) and multiply(self, ev: ProcessEvent)) ? I'm seeing all the examples have a StartEvent, 1 intermediate event of some method and finally a StopEvent. How can i actually control the flow somthing like a graph builder ?
@biswaroop sure i can give you a realtime use case. I'm working for a hedge fund. the current version is built on top of llama_index query engine on our internal research notes. I'm expanding to PR's and SEC filings. so I'm seeing parallel execution workflow does that. But the confusing part is event dispatch, its too generic and not sure how to control the flow. I'm seeing in Langchain they do that as a graphbuilder, but in llama_index is very free flowing but not sure if it'll cause problem in future.
@Logan M thanks for offering the help. That's what i love about llama_index, there's ample set of examples in the workflow section, I'm working on it currently, I have to get myself familiar with it, i got myself so comfortable coding it the usual llama_index way haha, If i run into a non-blocker, I'll ping ya for some help. Thx again for the help.