| ▲ | FabianCarbonara 7 hours ago | |
Thanks! Really interesting to hear you're working on something similar. You're right that the level of expressiveness is the key design decision. There's a real spectrum: - pre-registered blocks (safe, predictable) - code execution with a component library (middle ground) - full arbitrary code (maximum flexibility). My approach can slide along that spectrum: you could constrain the agent to only use a specific set of pre-imported components rather than writing arbitrary JSX. The mount() primitive and data flow patterns still work the same way, you just limit what the LLM is allowed to render. Would love to hear what you learn if you explore it! | ||
| ▲ | joelres 7 hours ago | parent [-] | |
Will do! I'm using a JSON DSL currently, I wonder if there's a best choice for format that is both at the correct level of expressiveness and also easy enough for the LLM to generate in a valid way. I do think markdown has advantage of being very trivial for LLMs, but my current JSON blocks strategy might be better for more complex data.... will play around. | ||