Table of Contents

Interface ILakeraGuardService

Namespace
FoundationaLLM.Gatekeeper.Core.Interfaces
Assembly
FoundationaLLM.Gatekeeper.Core.dll

Interface for calling the Lakera Guard service.

public interface ILakeraGuardService
Extension Methods

Methods

DetectPromptInjection(string)

Detects attempted prompt injections and jailbreaks in user prompts.

Task<string?> DetectPromptInjection(string content)

Parameters

content string

The text content that needs to be analyzed.

Returns

Task<string>

The text analysis restult, which includes flags that represents if the content contains prompt injections or jailbreaks.