hello there, I am going through the tutorials of Subclassing workflows here
https://docs.llamaindex.ai/en/stable/understanding/workflows/subclass/I can execute the codes fine. What I don't understand fully is the intuition of subclassing.
CustomWorkflow
inherits
MainWorkflow
and
step_two
now emits
Step2BEvent
instead of
Step3Event
. When we do that, are we overwriting the functionality of
step_two
of
MainWorkflow
? And to execute the workflow end to end, why are we running
CustomWorkflow
but not
MainWorkflow
? I would thought
MainWorkflow
to encapculate all subclassed workflows (or child workflow if I'm understanding correctly)