Class: Pangea::Models::AiGuard::TextGuardResult::Detectors::PromptInjection
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Pangea::Models::AiGuard::TextGuardResult::Detectors::PromptInjection
- Defined in:
- lib/pangea/models/ai_guard/text_guard_result.rb
Instance Attribute Summary collapse
-
#data ⇒ Pangea::Models::AiGuard::PromptInjectionResult?
Details about the analyzers.
-
#detected ⇒ Pangea::Internal::Type::Boolean?
Whether or not the Malicious Prompt was detected.
Method Summary
Methods inherited from Internal::Type::BaseModel
#==, coerce, #deconstruct_keys, dump, fields, #initialize, #inspect, known_fields, optional, required, #to_h
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, type_info
Constructor Details
This class inherits a constructor from Pangea::Internal::Type::BaseModel
Instance Attribute Details
#data ⇒ Pangea::Models::AiGuard::PromptInjectionResult?
Details about the analyzers.
126 |
# File 'lib/pangea/models/ai_guard/text_guard_result.rb', line 126 optional :data, Pangea::Models::AiGuard::PromptInjectionResult, nil?: true |
#detected ⇒ Pangea::Internal::Type::Boolean?
Whether or not the Malicious Prompt was detected.
120 |
# File 'lib/pangea/models/ai_guard/text_guard_result.rb', line 120 optional :detected, Pangea::Internal::Type::Boolean, nil?: true |