API reference for the DetectionResult object
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.
true
: The session is classified as an AI agent (confidence >= 0.5)false
: The session is classified as a human user (confidence < 0.5)debug: true
is enabled in the init
options.Confidence Thresholds
isAgent
boolean. You might adjust your application’s response based on the confidence
value for more nuanced handling.Edge Cases