Skip to main content
In Vijil Evaluate, Detectors are the components that determine whether LLagent outputs have various properties related to safety, reliability, and security. When you run a Vijil Trust Score Harness, the agent’s outputs are graded by Detectors before being aggregated. However, if you already have outputs from your agent and just want to grade them, you can use the detection endpoint. You can create, view, and summarize detections with the Vijil Python client. Currently, these functions are available only in the Python client.

List Detectors

List all supported Detectors with the detections.list_detectors method:

Create Detections

You can use the detections.create method to run a Detector on a list of inputs.
The relevant parameters are as follows:
  • detector_ids: Identifier for the Detector to be called. A full list of Detectors is available here.
  • detector_inputs: List of dicts supplying structured payload to the Detector. Keys to the dicts should map to permitted input fields for that Detector.
  • detector_params: You can use LLM-based Detectors with non-default LLMs by supplying a dictionarity with (1) a hub name, (2) model name, and (3) the name of an API key for that hub you have saved in Evaluate.
Below is an example for the use of detector_params. Suppose you want to use Llama 3.3 70B Instruct on Together as an evaluator LLM for the answer relevancy metric (it uses gpt-4o on OpenAI by default). Given you have a Together API key saved, you can use the following code

Summarize Detections

Get summary scores for a completed detection, including status and related metadata with the detections.describe method:
Takes the optional argument format. Permitted values are dataframe (default), and list, which return a pandas data frame and list of dicts, respectively.

Supported Fields for Detectors

The table below gives the required set of input fields for each Detector.
Last modified on July 14, 2026