You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reading imports (fairly straightforward, since we have the whole TS runtime)
If there are imports starting with @invoke/, loading the https://url/to/gemini.bgl.json graph
If it's an imperative graph, getting its TS source
If that exists, supplying it to the TS VFS as if it's local so that GeminiInput resolves correctly. This would also ensure that gemini has the right shape.
Storing the graph in the dependencies array on the module
This would allow us to supply type information with graphs, which will be a huge productivity boost for imperative graph makers.
At runtime:
If there are any dependencies, load them
Add them as modules before starting QuickJS runtime.
The text was updated successfully, but these errors were encountered:
Roughly, we want to be able to do this:
Which will translate into:
@invoke/
, loading thehttps://url/to/gemini.bgl.json
graphGeminiInput
resolves correctly. This would also ensure thatgemini
has the right shape.dependencies
array on the moduleThis would allow us to supply type information with graphs, which will be a huge productivity boost for imperative graph makers.
At runtime:
dependencies
, load themThe text was updated successfully, but these errors were encountered: