Skip to main content

Creating Custom Evaluators

Partners and developers can create custom evaluators to extend Agent Control with their own detection capabilities. These evaluators can be published as wheels and installed in your Agent Control server. If you want to contribute an evaluator to the Agent Control repo, see Contributing Evaluator.

Evaluator Interface

Every evaluator implements the Evaluator base class:

Evaluator Registration

Evaluators are discovered automatically via Python entry points. To make your evaluator available:
  1. Create a Python package with your evaluator class decorated with @register_evaluator
  2. Register as an entry point in your pyproject.toml:
  3. Install it in the Agent Control environment

Optional Dependencies

If your evaluator has optional dependencies, override is_available():
When is_available() returns False, the evaluator is silently skipped during registration.

Evaluator Best Practices

Example: Third-Party Integration

Here’s how a partner might integrate their content moderation API:
Refer DeepEval Example for creating Custom Evaluators.