ActionList
The ActionList
component can be used to list all of the current stored actions that are available for a user.
If you are using an API key for authentication, then the stored actions listed will be only for that API Key.
If you are using OAuth for authentication, then the stored actions listed will only be the actions that a user has set up for your OAuth provider.
Props
onActionSelected
This is called when the user clicks on an action in the list. It is passed the AiAction
object that was clicked.
See the List stored actions documentation for more information about what this object contains.
Usage
Make sure that this component is rendered unerneath an
AiActionsProvider
!
See EditAction and CreateAction for a more complete example of usage.
Example
On the left is the <ActionList />
component. Click on an action to see the details on the right.