Let's create an action file named battery_sim.action:
$ gedit battery_sim.action
Add the following content to it:
#goal
bool charge_state
---
#result
string battery_status
---
#feedback
float32 battery_percentage
Here, you can see that the goal, result, and feedback are defined in a hierarchical order, separated by three dashes ---.