Detection Result
API reference for the DetectionResult object
DetectionResult
The DetectionResult
object contains the outcome of the agent detection process. It’s returned by the AgentDetector.finalizeDetection()
and AgentDetector.getCurrentDetectionResult()
methods and provides information about whether the current session is classified as an AI agent.
Properties
Indicates whether the current session is classified as an AI agent based on the default threshold (0.5).
true
: The session is classified as an AI agent (confidence >= 0.5)false
: The session is classified as a human user (confidence < 0.5)
The predicted probability/confidence from the detection model, ranging from 0 to 1.
- Higher values (closer to 1) indicate higher likelihood of being an AI agent
- Lower values (closer to 0) indicate higher likelihood of being a human user
This value represents the model’s calculated probability that the session is from an AI agent.
The combined, preprocessed features used for scoring.
This property contains the feature values after preprocessing (standardization, one-hot encoding, etc.) that were fed into the model.
It can be useful for debugging or understanding the model’s decision, especially when debug: true
is enabled in the init
options.
Example Result
Using the Result
Interpretation Guidelines
When interpreting detection results, consider the following guidelines: