Introduction
The transition from "Model-as-a-Service" to autonomous "Agent-as-a-Service" (AaaS) represents a significant shift in the AI landscape. While Large Language Models (LLMs) are typically accessed via simple APIs, AI agents are designed to make decisions, utilize external tools, and iterate autonomously. This increased agency introduces new challenges in defining and enforcing quality. Traditional software metrics, which focus on uptime and basic availability, fail to capture the nuances of agentic behavior, such as hallucinations, bias, or the environmental impact of long-running autonomous processes.
The Problem: The AI Quality Gap
Currently, there is no standardized framework to define "quality" for AI agents. This lack of consensus creates a "black box" for consumers and businesses who require formal guarantees before integrating agents into critical workflows. Without a machine-readable way to specify requirements—such as ethical constraints, performance thresholds, and reliability—the adoption of autonomous agents remains risky. The authors address this gap by formalizing what we should measure and providing a machine-readable way to write those requirements into a contract (an SLA).
Extending the ISO/IEC 25010 Quality Model
To address this, the authors propose extending the ISO/IEC 25010 standard, a globally recognized framework for software product quality. The proposed extension incorporates AI-specific dimensions that are often overlooked in traditional software engineering.
Key additions to the model include:
- Sustainability: Tracking energy consumption, water usage, and carbon emissions (gCO2eq).
- Autonomy: Quantifying the level of human oversight required versus the agent's ability to operate independently.
- Understandability: A cluster of traits including transparency, explainability, and accountability.
- Output Properties: Formalizing non-functional characteristics of the agent's generated content, such as creativity, conciseness, and consistency.
The AgentSLA Framework and DSL
The core contribution of the paper is AgentSLA, a formal framework and Domain-Specific Language (DSL) designed to create binding Service Level Agreements for AI agents. Built on top of the BESSER Low-Code platform, the framework allows for the definition of Service Level Objectives (SLOs) in a machine-readable JSON format.
The metamodel (shown in Figure 2) structures the SLA around GuaranteeTerms, which consist of Scopes, QualifyingConditions, and SLOs. A critical feature of this model is the QoSMetric, which includes an uncertainty value. This acknowledges the inherently probabilistic and non-deterministic nature of AI, allowing SLAs to account for performance "jitter" rather than assuming binary success/failure states.
Key Insights
- Sustainability as a First-Class Citizen: By including environmental metrics directly in the quality model, the framework treats carbon footprint and resource utilization as core performance indicators.
- The Autonomy Metric: Treating autonomy as a measurable quality characteristic allows for tiered service levels—ranging from "human-in-the-loop" safety-critical agents to fully autonomous background processors.
- Handling Non-Determinism: Because AI is inherently probabilistic, the DSL includes an
uncertaintyvalue for metrics, allowing the SLA to account for the variance in AI performance. - Agent-to-Agent Protocols: As agents begin to collaborate via protocols like Google’s Agent2Agent (A2A), AgentSLA provides the necessary "contract" layer to ensure interoperability and trust between autonomous entities.
Implementation and Results
The authors implemented a Python-based validating parser that transforms JSON SLA definitions into objects for real-time monitoring. They mapped over 30 specific metrics—including F1 scores, SHAP values for explainability, and end-to-end response times—to the proposed quality categories. This provides a comprehensive "menu" for developers to select relevant metrics for their specific use cases.
Future Work
While the framework provides a robust theoretical and structural foundation, future work will focus on large-scale empirical validation in production environments. The authors also aim to integrate AgentSLA into popular Agent Development Kits (ADKs) and develop graphical interfaces to make SLA definition accessible to non-technical stakeholders. As the AI field evolves, the DSL will be expanded to support custom, user-defined metrics on the fly.
Summary updated