SearcharxivSearch

arXiv subjects

Jens Kohl

Publications and source records attributed to Jens Kohl.

3 recordsLinked to original sources

Automated structural testing of LLM-based agents: methods, framework, and case studies

LLM-based agents are rapidly being adopted across diverse domains. Since they interact with users without supervision, they must be tested extensively. Current testing approaches focus on acceptance-level evaluation from the user's perspective. While intuitive, these tests require manual evaluation, are difficult to automate, do not facilitate root cause analysis, and incur expensive test environments. In this paper, we present methods to enable structural testing of LLM-based agents. Our approach utilizes traces (based on OpenTelemetry) to capture agent trajectories, employs mocking to enforce reproducible LLM behavior, and adds assertions to automate test verification. This enables testing agent components and interactions at a deeper technical level within automated workflows. We demonstrate how structural testing enables the adaptation of software engineering best practices to agents, including the test automation pyramid, regression testing, test-driven development, and multi-language testing. In representative case studies, we demonstrate automated execution and faster root-cause analysis. Collectively, these methods reduce testing costs and improve agent quality through higher coverage, reusability, and earlier defect detection. We provide an open source reference implementation on GitHub.

cs.SE

Generative AI Toolkit -- a framework for increasing the quality of LLM-based applications over their whole life cycle

As LLM-based applications reach millions of customers, ensuring their scalability and continuous quality improvement is critical for success. However, the current workflows for developing, maintaining, and operating (DevOps) these applications are predominantly manual, slow, and based on trial-and-error. With this paper we introduce the Generative AI Toolkit, which automates essential workflows over the whole life cycle of LLM-based applications. The toolkit helps to configure, test, continuously monitor and optimize Generative AI applications such as agents, thus significantly improving quality while shortening release cycles. We showcase the effectiveness of our toolkit on representative use cases, share best practices, and outline future enhancements. Since we are convinced that our Generative AI Toolkit is helpful for other teams, we are open sourcing it on and hope that others will use, forward, adapt and improve

cs.SE

Bayesian Structural Learning for an Improved Diagnosis of Cyber-Physical Systems

The diagnosis of cyber-physical systems aims to detect faulty behaviour, its root cause and a mitigation or even prevention policy. Therefore, diagnosis relies on a representation of the system's functional and faulty behaviour combined with observations of the system taken at runtime. The main challenges are the time-intensive building of a model, possible state-explosion while searching for the root cause and interpretability of the results. In this paper we propose a scalable algorithm tackling these challenges. We use a Bayesian network to learn a structured model automatically and optimise the model by a genetic algorithm. Our approach differs from existing work in two aspects: instead of selecting features prior to the analysis we learn a global representation using all available information which is then transformed to a smaller, label-specific one and we focus on interpretability to facilitate repairs. The evaluation shows that our approach is able to learn a model with equal performance to state-of-the-art algorithms while giving better interpretability and having a reduced size.

cs.LG