WolfDefenderResult class final

The classification of one text.

Constructors

WolfDefenderResult({required double injectionProbability, required int tokens, required int windows})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
injectionProbability → double
The probability, 0 to 1, that the text contains a prompt injection or a jailbreak.
final
isInjection → bool
Patronus's threshold: a probability greater than 0.5.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tokens → int
The token count of the text.
final
windows → int
The model runs: one per 2046 tokens, with an overlap of 64.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited