Ironclad / rivet

The open-source visual AI programming environment and TypeScript library
https://rivet.ironcladapp.com
MIT License
2.71k stars 237 forks source link

[Feature]: A select node. Lets the user select an item in an array #323

Open hotelbuddy-online opened 8 months ago

hotelbuddy-online commented 8 months ago

Feature Request

...I think it would be super useful to be able to make a selection from a list. It could have a single input of any[] and displays a list for the user to touch (could be string, obj, img ...) and outputs the item and the index. a bool field could say if it is multiselect.

Could be checkboxes or highlighted list

Code of Conduct

gogwilt commented 8 months ago

I could imagine us adding this to the User Input node. Have an optional field like "answer options," and if it's present, we show checkboxes or a radio (depending on whether it's multi-select).

@hotelbuddy-online does that sound like it would fit your use-case?