When fleets of empires at war meet in the same place they fight, producing a battle recording.
You can't control a battle recording however it may give insight into why your fleets performed well or poorly.
The choices ships make to move or attack are set by heuristics, not micro-managed by the player.