3 ms·
Nicely done! 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 h
by xzhao254 2y ago
Nicely done!
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?
- poudels14 2y agoIf you mean AI generated widgets, it doesn't support AI generated widgets yet; maybe in the future. 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/react-examples/weather/Weather.tsx https://github.com/reagentai/reagent/blob/main/packages/reac...