10 points · by poudels14 · 2y ago · 5 comments
Github: https://github.com/reagentai/reagent
There are already amazing tools for building agents but most of them seem to be focused on building the AI workflow on the backend with markdown as final output. There is generative UI in AI SDK from vercel but it seems to work only with server components afaik. So, I created a framework for building AI agents with interactive UI components; you can render any component from LLM tool, update it's state, etc.
This is a graph based framework. You can build AI agents simply by binding inputs and outputs from one node to another and you can even visualize the agent graph that's auto-generated for your agent.
If you are building AI agents in JS, I would love to hear your thoughts and feedback in the comments!
Is there a way to ensure the generated widgets stay compatible with my custom CSS if I want to embed this library into my chat application? Also how difficult is it to create custom widgets?
It's very easy to use custom widgets. You can render any UI component by calling `context.render((props) => <CustomWidget />, data)` from the agent node execute method. Here's an example: https://github.com/reagentai/reagent/blob/main/packages/reac...