PACE: A Pragmatic Agent for Enhancing Communication Efficiency Using Large Language Models