Observed since 20 Oct, 22:59 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
The AgentProctor module is a testing and evaluation library designed for AI agents, enabling the testing of various behaviors and properties that cannot be effectively evaluated using standard regression or unit tests. This library provides a structured approach to evaluate AI responses against defined criteria, ensuring that agents behave as expected in diverse scenarios.
The AgentProctor module is a testing and evaluation library designed for AI agents, enabling the testing of various behaviors and properties that cannot be effectively evaluated using standard regression or unit tests. This library provides a structured approach to evaluate AI responses against defined criteria, ensuring that agents behave as expected in diverse scenarios.
Traditional testing breaks down when applied to LLM-based systems.
AgentProctor provides a structured way to:
To install the AgentProctor library, you can use pip. Make sure you have Python 3.10 or higher installed.
pip install agentproctor
This command installs the library along with its development dependencies.
To use the AgentProctor library, first import the necessary classes from the package. Below is a simple example of how to create an evaluation request and evaluate it using a custom evaluator.
Since AgentProctor uses LiteLLM to handle the LLM API calls, you must set your prefered LLM API key as an environment variable.
from agentproctor.schemas import EvaluationRequest
from agentproctor.base_evaluator import BaseEvaluator
# Create an evaluation request
request = EvaluationRequest(
response="Your agent's response here",
model="gpt-4o-mini",
additional_context="Optional context to help the evaluator"
)
# Create a custom evaluator
class MyEvaluator(BaseEvaluator):
@property
def criteria(self):
return "Your evaluation criteria here."
# Evaluate the request
evaluator = MyEvaluator()
result = evaluator.evaluate(request)
print(result)
>>> EvaluationResult(
... passed=False,
... reason="A rejection reason.",
... confidence=0.75,
>>> )
from agentproctor.schemas import EvaluationRequest
from agentproctor.base_evaluator import BaseEvaluator
# Create a custom evaluator
class EntityReferenceEvaluator(BaseEvaluator):
@property
def criteria(self):
"""
Defines the evaluation criteria dynamically using parameters provided at initialization.
The BaseEvaluator accepts arbitrary keyword arguments (`kwargs`) that can be used
to customize evaluation logic at runtime. This enables reusable evaluators that
adapt to different inputs without redefining new classes.
For example, this evaluator checks whether a specific entity is referenced in
the response by accessing `self.kwargs["entity"]`.
"""
return f"The user is referencing {self.kwargs["entity"]}"
# Create an evaluation request
request = EvaluationRequest(
response="I'm speaking about Lionel Messi.",
model="gpt-4o-mini",
)
# Evaluate the request
evaluator = EntityReferenceEvaluator(entity="Lionel Messi")
result = evaluator.evaluate(request)
print(result)
>>> EvaluationResult(
... passed=True,
... reason="The user is clearly speaking about Lionel Messi",
... confidence=1.0,
>>> )
.
├── docs
│ ├── LICENSE.md
│ ├── QUICKSTART.md
│ └── README.md
├── notebooks
│ └── use_examples.ipynb
├── src
│ └── agentproctor
│ ├── __init__.py
│ ├── base_evaluator.py
│ ├── schemas.py
│ └── evaluators
│ ├── __init__.py
│ ├── entity_reference.py
│ └── language.py
├── tests
│ ├── conftest.py
│ ├── test_base_evaluator.py
│ ├── TEST_CATALOG.md
│ ├── test_entity_evaluator.py
│ ├── test_evaluation_request.py
│ └── test_language_evaluator.py
├── .gitignore.toml
├── .pre-commit-config.toml
├── pyproject.toml
└── uv.lock
AgentProctor is built around a few core principles:
We welcome contributions to improve the AgentProctor library! Here’s how you can help:
git checkout -b feature/your-feature-name
git commit -m "Add feature: your feature description"
git push origin feature/your-feature-name
If you find AgentProctor useful, consider supporting its development.
Your support helps:
👉 Sponsor here: https://github.com/sponsors/diego-mourino
Hi, I'm Diego — an AI Engineer focused on building reliable systems around LLMs and AI agents.
This project is part of my effort to:
💼 LinkedIn: https://www.linkedin.com/in/diego-mourino/?locale=en-US
📧 Email: diego.mourino.rs@gmail.com
If you're interested in collaboration, consulting, or have feedback, feel free to reach out.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.2 | 13 Apr 2026 | 2 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 22:59 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:bf2a30d53615e2f9b3e0076cd1ef7a27fb5bcb5322bcb061b3f4d5d14e4b2088