An abstraction library for building domain-specific intelligent agents based on Large Language Models