When making a request to an agent, it will return the steps the agent took to arrive at the result. You can access these steps at a path like: result.outputs[0].outputs[0].results.message.content_blocks[0].contents.
It would be great to have a shortcut method on the flowResponse, like chatOutputText, to return the agent steps.