Preheat the grill (broiler) to medium-high.
Lightly beat the eggs in a bowl with a pinch of salt and pepper. Set aside.
Heat the olive oil in a 22–24 cm ovenproof frypan over medium heat.
Add the red onion and cook for 3–4 minutes until softened.
Add the mushrooms and capsicum and cook until the mushrooms release their moisture and the pan is mostly dry.
Add the roasted sweet potato (if using) and scatter it evenly through the pan.
Reduce the heat to low and pour the beaten eggs evenly over the vegetables.
Arrange the asparagus spears and cherry tomatoes (if using) cut-side up on top, pressing them gently so they are partially submerged but still visible.
Dot the goat’s cheese over the top.
Cook gently on the stovetop for 6–8 minutes, until the edges are set but the centre is still slightly soft.
Transfer the pan under the grill and cook for 3–5 minutes, until just set and lightly golden on top.
Remove from the grill and rest for 5 minutes before slicing.