PromptInjectionProtectionResult

class oci.generative_ai_inference.models.PromptInjectionProtectionResult(**kwargs)

Bases: object

The result of prompt injection protection.

Methods

__init__(**kwargs) Initializes a new PromptInjectionProtectionResult object with values from keyword arguments.

Attributes

score [Required] Gets the score of this PromptInjectionProtectionResult.
__init__(**kwargs)

Initializes a new PromptInjectionProtectionResult object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:score (float) – The value to assign to the score property of this PromptInjectionProtectionResult.
score

[Required] Gets the score of this PromptInjectionProtectionResult. The score indicating the likelihood of a prompt injection attack.

Returns:The score of this PromptInjectionProtectionResult.
Return type:float