-
Notifications
You must be signed in to change notification settings - Fork 49
Description
First off the spec looks great and we are hoping to use parts of it in place of elicitations (which are very cumbersome to use).
For many of our use cases we want the tool to sometimes return a ui resources and sometimes just return to the model. I may be reading it wrong but it doesn't look like conditional rendering of ui resources in a tool response is possible at the moment, can you confirm? it looks as though every response from a tool with a ui resources MUST render that ui resources.
A simple use case that exhibits this would be transferring money - transfer_money(from (checking / savings), to (checking/savings, amount).
The code will enforce rules on ensuring that the user picks a different from and to and that the amount being transferred is less than the balance. None of this requires a widget. However for the final stage we would like to return a widget for confirmation. When the user clicks accept it calls a different tool to confirm the transfer.
Is this possible today? i.e. this conditional return of a ui resource or is it assumed that every time a tool (with a ui resource) is called that the ui resources must be rendered.
Thanks in advance.