Automated test generation to evaluate tool-augmented LLMs as conversational AI agents
Samuel Arcadinho, David Aparicio, Mariana Almeida
TL;DR
This work tackles the challenge of evaluating tool-augmented LLMs as conversational AI agents by introducing an automated test-generation pipeline grounded in user-defined procedures. It uses intermediate graph representations (flowgraphs and conversation graphs) to ensure procedure-grounded, diverse conversations while curbing hallucinations, and it provides ALMITA, a manually curated customer-support dataset for end-to-end evaluation. Empirical results show strong single-turn performance and API-call accuracy across several models but reveal substantial gaps in maintaining correct, coherent conversations across complete interactions. The framework is general and extensible, enabling fully automated test generation (auto-ALMITA) and applicability to domains beyond customer support, with ALMITA serving as a public benchmark for future research.
Abstract
Tool-augmented LLMs are a promising approach to create AI agents that can have realistic conversations, follow procedures, and call appropriate functions. However, evaluating them is challenging due to the diversity of possible conversations, and existing datasets focus only on single interactions and function-calling. We present a test generation pipeline to evaluate LLMs as conversational AI agents. Our framework uses LLMs to generate diverse tests grounded on user-defined procedures. For that, we use intermediate graphs to limit the LLM test generator's tendency to hallucinate content that is not grounded on input procedures, and enforces high coverage of the possible conversations. Additionally, we put forward ALMITA, a manually curated dataset for evaluating AI agents in customer support, and use it to evaluate existing LLMs. Our results show that while tool-augmented LLMs perform well in single interactions, they often struggle to handle complete conversations. While our focus is on customer support, our method is general and capable of AI agents for different domains.
