Settings

Theme

Ask HN: How to deal with UI within the agentic loop

3 points by mattsadowsky · 6 comments · 1 min read


I am planning to the module in may SaaS to allow user to chat about its data, features, modules that he have in his workspace with LLM Agent.

What approach should I use to render UI within the chat? any recommendations?

1 thread
ruihanli

I know two approaches. One is free-form rendering, like Anthropic's Artifacts. The other is to designate a category of tools whose output gets caught by the frontend and rendered in the chat using the corresponding components. I used the second one in several projects.

  • mattsadowskyOP

    Ok, but what tech you are using second one approach? any open source, specific tech?

    • ruihanli

      I built it by myself. If you want, I can share the code with you.

      • mattsadowskyOP

        No, it is fine. Could you tell me only what langage you use to generate UI? HTML, JSON, MD? I what output you expect from AI Agent to generate UI component?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection