-
Notifications
You must be signed in to change notification settings - Fork 74
Prompt Megastep
Dimitri Glazkov edited this page Apr 8, 2025
·
1 revision
This is a rough sketch of how we'll consolidate all existing generative steps (Make Text, Make Image, etc.) into a single "Prompt" step.
Currently, these are all distinct steps with their own types:
a2.bgl.json#[name]go-over-list.bgl.json- etc.
The new "Prompt" step will combine them into one new step, with its own new type:
prompt.bgl.json
The new step will:
- import
a2.bgl.jsonas a framework - have an extra
generative-modeconfiguration port that will allow selecting various generative modes (aka steps). The values of thegenerative-modeconfiguration port will map to the previously distinct steps:- "Generate Text" -> "Make Text" ->
a2.bgl.json#daf082ca-c1aa-4aff-b2c8-abeb984ab66c - "Generate Image" -> "Make Image" -> ...
- ...
- "Generate Text" -> "Make Text" ->
- while being edited, use the "Reactive" port capability (landed in #5259, see reactive-step.ts for an example) and switch the rest of configuration dynamically based on the mode, calling
describeon the matching distinct step and inserting its properties inline. - when run, will read the value of the
generative-modeport and callinvokeon the matching distinct step
In BGL, the new Prompt step will have a new prompt.bgl.json type, and in configuration, the generative-mode property that will contain the old distinct step URL (filed #5260 to implement).