Class: Deeprails::Models::DefendResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Deeprails::Models::DefendResponse
- Defined in:
- lib/deeprails/models/defend_response.rb
Overview
Defined Under Namespace
Modules: AutomaticHallucinationToleranceLevel, ImprovementAction, Status, ThresholdType Classes: Capability, Event, File, Stats
Instance Attribute Summary collapse
-
#automatic_hallucination_tolerance_levels ⇒ Hash{Symbol=>Symbol, Deeprails::Models::DefendResponse::AutomaticHallucinationToleranceLevel}
Mapping of guardrail metric names to tolerance values.
-
#capabilities ⇒ Array<Deeprails::Models::DefendResponse::Capability>
Extended AI capabilities available to the event, if any.
-
#created_at ⇒ Time
The time the workflow was created in UTC.
-
#custom_hallucination_threshold_values ⇒ Hash{Symbol=>Float}
Mapping of guardrail metric names to threshold values.
-
#description ⇒ String
A description for the workflow, to help you remember what that workflow means to your organization.
-
#events ⇒ Array<Deeprails::Models::DefendResponse::Event>
An array of events associated with this workflow.
-
#files ⇒ Array<Deeprails::Models::DefendResponse::File>
List of files associated with the workflow.
-
#improvement_action ⇒ Symbol, ...
The action used to improve outputs that fail one or more guardrail metrics for the workflow events.
-
#name ⇒ String
A human-readable name for the workflow that will correspond to it’s workflow ID.
- #stats ⇒ Deeprails::Models::DefendResponse::Stats?
-
#status ⇒ Symbol, Deeprails::Models::DefendResponse::Status
Status of the selected workflow.
-
#threshold_type ⇒ Symbol, Deeprails::Models::DefendResponse::ThresholdType
Type of thresholds used to evaluate the event.
-
#updated_at ⇒ Time
The most recent time the workflow was updated in UTC.
-
#workflow_id ⇒ String
A unique workflow ID used to identify the workflow in other endpoints.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(file_id: nil, file_name: nil, file_size: nil) ⇒ Object
|
|
# File 'lib/deeprails/models/defend_response.rb', line 147
|
Instance Attribute Details
#automatic_hallucination_tolerance_levels ⇒ Hash{Symbol=>Symbol, Deeprails::Models::DefendResponse::AutomaticHallucinationToleranceLevel}
Mapping of guardrail metric names to tolerance values. Values can be strings (‘low`, `medium`, `high`) for automatic tolerance levels.
12 13 |
# File 'lib/deeprails/models/defend_response.rb', line 12 required :automatic_hallucination_tolerance_levels, -> { Deeprails::Internal::Type::HashOf[enum: Deeprails::DefendResponse::AutomaticHallucinationToleranceLevel] } |
#capabilities ⇒ Array<Deeprails::Models::DefendResponse::Capability>
Extended AI capabilities available to the event, if any. Can be ‘web_search` and/or `file_search`.
20 |
# File 'lib/deeprails/models/defend_response.rb', line 20 required :capabilities, -> { Deeprails::Internal::Type::ArrayOf[Deeprails::DefendResponse::Capability] } |
#created_at ⇒ Time
The time the workflow was created in UTC.
26 |
# File 'lib/deeprails/models/defend_response.rb', line 26 required :created_at, Time |
#custom_hallucination_threshold_values ⇒ Hash{Symbol=>Float}
Mapping of guardrail metric names to threshold values. Values can be floating point numbers (0.0-1.0) for custom thresholds.
33 |
# File 'lib/deeprails/models/defend_response.rb', line 33 required :custom_hallucination_threshold_values, Deeprails::Internal::Type::HashOf[Float] |
#description ⇒ String
A description for the workflow, to help you remember what that workflow means to your organization.
40 |
# File 'lib/deeprails/models/defend_response.rb', line 40 required :description, String |
#events ⇒ Array<Deeprails::Models::DefendResponse::Event>
An array of events associated with this workflow.
46 |
# File 'lib/deeprails/models/defend_response.rb', line 46 required :events, -> { Deeprails::Internal::Type::ArrayOf[Deeprails::DefendResponse::Event] } |
#files ⇒ Array<Deeprails::Models::DefendResponse::File>
List of files associated with the workflow. If this is not empty, models can search these files when performing evaluations or remediations
53 |
# File 'lib/deeprails/models/defend_response.rb', line 53 required :files, -> { Deeprails::Internal::Type::ArrayOf[Deeprails::DefendResponse::File] } |
#improvement_action ⇒ Symbol, ...
The action used to improve outputs that fail one or more guardrail metrics for the workflow events.
91 |
# File 'lib/deeprails/models/defend_response.rb', line 91 optional :improvement_action, enum: -> { Deeprails::DefendResponse::ImprovementAction } |
#name ⇒ String
A human-readable name for the workflow that will correspond to it’s workflow ID.
59 |
# File 'lib/deeprails/models/defend_response.rb', line 59 required :name, String |
#stats ⇒ Deeprails::Models::DefendResponse::Stats?
96 |
# File 'lib/deeprails/models/defend_response.rb', line 96 optional :stats, -> { Deeprails::DefendResponse::Stats } |
#status ⇒ Symbol, Deeprails::Models::DefendResponse::Status
Status of the selected workflow. May be ‘inactive` or `active`. Inactive workflows will not accept events.
66 |
# File 'lib/deeprails/models/defend_response.rb', line 66 required :status, enum: -> { Deeprails::DefendResponse::Status } |
#threshold_type ⇒ Symbol, Deeprails::Models::DefendResponse::ThresholdType
Type of thresholds used to evaluate the event.
72 |
# File 'lib/deeprails/models/defend_response.rb', line 72 required :threshold_type, enum: -> { Deeprails::DefendResponse::ThresholdType } |
#updated_at ⇒ Time
The most recent time the workflow was updated in UTC.
78 |
# File 'lib/deeprails/models/defend_response.rb', line 78 required :updated_at, Time |
#workflow_id ⇒ String
A unique workflow ID used to identify the workflow in other endpoints.
84 |
# File 'lib/deeprails/models/defend_response.rb', line 84 required :workflow_id, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/deeprails/models/defend_response.rb', line 137
|