Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories