Table of Contents

Class PromptInjectionResult

Namespace
FoundationaLLM.Gatekeeper.Core.Models.LakeraGuard
Assembly
FoundationaLLM.Gatekeeper.Core.dll

Detailed prompt injection result.

public class PromptInjectionResult
Inheritance
PromptInjectionResult
Inherited Members
Extension Methods

Properties

Categories

A dictionary of detectors that the endpoint analyzed with a boolean decision of whether the input contains the analyzed category.

[JsonPropertyName("categories")]
public required Dictionary<string, bool> Categories { get; set; }

Property Value

Dictionary<string, bool>

CategoryScores

A dictionary of detectors that the endpoint analyzed with a floating point confidence score between 0 and 1.

[JsonPropertyName("category_scores")]
public required Dictionary<string, decimal> CategoryScores { get; set; }

Property Value

Dictionary<string, decimal>

Flagged

A boolean indicating whether any of the endpoint's categories triggered a positive result.

[JsonPropertyName("flagged")]
public required bool Flagged { get; set; }

Property Value

bool