Menu

1 / 6

Show DEV: SPL Workflow Orchestrator

DEV Community: node·Dominik Gawlik·2 days ago
#qVBrmJ8U
#devtonodejs#devto#dev#agentic#javascript
Reading 0:00
15s threshold

If you have worked for a while with agentic frameworks one common theme surfaces - this is a lot of complex code:

callback hell

operating on graphs

explicit passing of tools

...

In this post I would like to propose solution that flips the script. What if

We could inline agentic flows directly in JavaScript with minimal syntax?

We could interleave natural language with code?

Enforce contraints on prompts themselves from the code?

Example worth thousand of words

Here is toy example, lets say we are - converting RGB values back and to labels . The syntax is very simple and what it's showing is SPL file. Everything is in JavaScript block for now.

Let's save it to rgb.spl file and run it.

As we can see the runtime runs the cell and returns the response. Now the other way around. We can use agentic blocks to reverse the functionality.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.