To convert from indirect speech to direct speech:
Indirect: "She told that she had eaten two eggs."
We bring it back to the actual words spoken by her. Since the indirect sentence uses "had eaten", the original direct speech likely used present perfect: "have eaten".
Hence, correct direct speech: "She said, 'I have eaten two eggs'."