Tool: present_choices
Description: Presents a list of options to the user and returns the selected option(s).
Argument | Type | Description |
---|---|---|
prompt | str | The prompt/question to display. |
choices | list[str] | List of options to present. Use \n in option text for explicit line breaks if needed. |
multi_select | bool | If True, allow multiple selections. |
Returns | str | For multi_select=True: Returns each selection on a new line, each prefixed with '- '. For multi_select=False: Returns the selected option as a string. If cancelled: Returns 'No selection made.' |
Example usage: present_choices(prompt="Choose:", choices=["A", "B"], multi_select=False)
generated by janito.dev