ShadowDecision

class ShadowDecision(val threshold: Double, val wouldHit: Boolean, val reason: MissReason?, val bestSimilarity: Double?, val matchedPrompt: String?, val guardName: String?)

What one threshold would have decided, and why.

Constructors

Link copied to clipboard
constructor(threshold: Double, wouldHit: Boolean, reason: MissReason?, bestSimilarity: Double?, matchedPrompt: String?, guardName: String?)

Properties

Link copied to clipboard

Similarity of the closest candidate considered, or null when the scope was empty.

Link copied to clipboard

The guard that vetoed, when reason is MissReason.REJECTED_BY_GUARD.

Link copied to clipboard

The prompt that would have been served, or that was refused. null when the scope was empty.

Link copied to clipboard

Why nothing would have been served, or null when wouldHit is true.

Link copied to clipboard

The threshold this decision was judged at.

Link copied to clipboard

Whether a candidate would have been served at threshold.

Functions

Link copied to clipboard
open override fun toString(): String