You can use agent.query in order to ask the agent about the actions it just took or anything that happened in the last call to agent.act.