uniconhq / unicon-backend

0 stars 1 forks source link

feat: program assembly and node graph support #20

Closed shenyih0ng closed 1 month ago

shenyih0ng commented 1 month ago

random thought while working on the PR:

@seelengxd maybe we can have user inputs to a ProgrammingTask as an implicit/pre-defined node for each test case so we don't have to deal with sending inputs to nodes that need it. The responsibility is now on the test-case creator to do that.

My intuition is that this way this gives us the creator more flexibility in how he/she might want do use the user inputs without having any assumptions that, for example user inputs will only be passed into PyRunFunctionStep (or other steps that need it).

To do this, we will need a way to reference future user inputs which ProgrammingTask::templates already give us for free, if we assume that users will always need to provide whatever is defined in the templates parameter.