ACP Evals
ACP Evals is an open framework for evaluating AI agents across accuracy, performance, and reliability dimensions.
Modern AI agents need comprehensive testing before deployment. ACP Evals provides production-grade evaluation using LLM-as-judge methodology, designed to integrate seamlessly with the BeeAI ecosystem and any ACP-compliant agent.
ACP Evals enables you to:
- Measure response accuracy using configurable LLM judges
- Track performance metrics including latency and memory usage
- Validate tool usage patterns and error handling
- Run batch evaluations for comprehensive test coverage
- Generate detailed reports for continuous improvement
Core Concepts
| Concept | Description |
|---|---|
| Accuracy | Evaluates response quality against expected outputs using LLM-as-judge methodology. Supports custom rubrics for domain-specific evaluation. |
| Performance | Measures latency, memory usage, and token efficiency. Essential for production deployments where speed and resource constraints matter. |
| Reliability | Validates tool usage patterns, error handling, and consistency across runs. Critical for agents that interact with external systems. |
Quick Example
Evaluate agent accuracy with just a few lines:
from acp_evals import AccuracyEval
evaluation = AccuracyEval(
agent="http://localhost:8001/agents/my-agent",
rubric="factual"
)
result = await evaluation.run(
input="What is 10*5 then to the power of 2? do it step by step",
expected="2500",
print_results=True
)
assert result is not None and result.score >= 0.7
Core Features
- Comprehensive Evaluation - Run all three evaluation dimensions in a single command
- Rich TUI Display - Interactive terminal UI with detailed metrics and LLM judge explanations
- Batch Testing - Evaluate multiple test cases with parallel execution
- Multiple Provider Support - Works with OpenAI, Anthropic, Ollama, and more
- Export Capabilities - Generate JSON reports for CI/CD integration
Installation
pip install acp-evals
Quickstart
1. Configure your LLM provider
echo "OPENAI_API_KEY=your-key-here" > .env
acp-evals check
2. Run your first evaluation
# Test accuracy
acp-evals run accuracy http://localhost:8001/agents/my-agent \
-i "What is 2+2?" -e "4"
3. Run comprehensive evaluation
acp-evals comprehensive http://localhost:8001/agents/my-agent \
-i "Calculate compound interest" -e "Detailed calculation"
Examples
Performance Evaluation
from acp_evals import PerformanceEval
evaluation = PerformanceEval(
agent="http://localhost:8001/agents/my-agent",
num_iterations=5,
track_memory=True
)
result = await evaluation.run(
input_text="What is the capital of France?",
print_results=True
)
Reliability Evaluation
from acp_evals import ReliabilityEval
evaluation = ReliabilityEval(
agent="http://localhost:8001/agents/my-agent",
tool_definitions=["search", "calculator"]
)
result = await evaluation.run(
input="Search for AAPL price and calculate P/E ratio",
expected_tools=["search", "calculator"],
print_results=True
)
assert result.passed
Agent Formats
ACP Evals works with any agent implementation:
- ACP-compliant agents:
http://localhost:8001/agents/my-agent - Python functions:
agent.py:function_name - Python modules:
mymodule.agent_function
CLI Reference
# Check setup
acp-evals check
# Run evaluations
acp-evals run accuracy <agent> -i <input> -e <expected>
acp-evals run performance <agent> -i <input>
acp-evals run reliability <agent> -i <input> --expected-tools <tool>
# Comprehensive testing
acp-evals comprehensive <agent> -i <input> -e <expected>
# Batch testing
acp-evals run accuracy <agent> --test-file tests.jsonl
Resources
- Documentation - API reference and guides
- Examples - Ready-to-run code samples
- Issues - Report bugs or request features
License
Apache 2.0 - see LICENSE
Developed by contributors to the BeeAI project, this initiative is part of the Linux Foundation AI & Data program. Its development follows open, collaborative, and community-driven practices.
Metadata
Release files for acp-evals 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| acp_evals-1.0.0.tar.gz | 98.6 kB | Without provenance | Details for acp_evals-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| acp_evals-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for acp_evals-1.0.0-py3-none-any.whl |
Total release size: 181.1 kB
Release files / acp_evals-1.0.0.tar.gz
| Download URL | acp_evals-1.0.0.tar.gz |
|---|---|
| Size | 98.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0eb16f134c485f53639eabe359d609b4c36a11b3a9f5e89b72180de0c90a40dc
|
|
BLAKE2b-256 checksum How to use checksums |
2a5c327507d3f77b0bd0360551edfd6251fa824f6bb8ab7b119e70a07cf98433
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / acp_evals-1.0.0-py3-none-any.whl
| Download URL | acp_evals-1.0.0-py3-none-any.whl |
|---|---|
| Size | 82.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dca995be483c72fb13c3e8bb27d47043b0bc0ab14609a04d0f338b283c0470e1
|
|
BLAKE2b-256 checksum How to use checksums |
3fedf7108cb6644a976a717f449900bf08db82b7b17624c5bbe85997925f7258
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for acp-evals 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.