Class: SafetyKit::Models::AgentDecisionCreateAgentDecisionResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/safety_kit/models/agent_decision_create_agent_decision_response.rb,
sig/safety_kit/models/agent_decision_create_agent_decision_response.rbs

Overview

See Also:

  • SafetyKit::Resources::AgentDecisions#create_agent_decision

Instance Attribute 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(safetykit_correct:) ⇒ AgentDecisionCreateAgentDecisionResponse

Response confirming the agent decision was recorded

Parameters:

  • safetykit_correct (Boolean)

    Whether SafetyKit's decision matched the submitted agent decision

  • safetykit_correct: (Boolean)


# File 'lib/safety_kit/models/agent_decision_create_agent_decision_response.rb', line 13

Instance Attribute Details

#safetykit_correctBoolean

Whether SafetyKit's decision matched the submitted agent decision

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


11
# File 'lib/safety_kit/models/agent_decision_create_agent_decision_response.rb', line 11

required :safetykit_correct, SafetyKit::Internal::Type::Boolean, api_name: :safetykitCorrect

Instance Method Details

#to_hash{ safetykit_correct: bool }

Returns:

  • ({ safetykit_correct: bool })


11
# File 'sig/safety_kit/models/agent_decision_create_agent_decision_response.rbs', line 11

def to_hash: -> { safetykit_correct: bool }