Class: GetStream::Generated::Models::AgentReviewSummaryResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/agent_review_summary_response.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ AgentReviewSummaryResponse

Initialize with attributes



26
27
28
29
30
31
32
# File 'lib/getstream_ruby/generated/models/agent_review_summary_response.rb', line 26

def initialize(attributes = {})
  super(attributes)
  @confidence = attributes.fetch(:confidence) { attributes.fetch('confidence', nil) }
  @status = attributes.fetch(:status) { attributes.fetch('status', nil) }
  @flag_assessment = attributes.fetch(:flag_assessment) { attributes.fetch('flag_assessment', nil) }
  @recommended_action = attributes.fetch(:recommended_action) { attributes.fetch('recommended_action', nil) }
end

Instance Attribute Details

#confidence ⇒ Float

Returns Verdict confidence from 0 to 1.

Returns:

  • (Float) —

    Verdict confidence from 0 to 1



14
15
16
# File 'lib/getstream_ruby/generated/models/agent_review_summary_response.rb', line 14

def confidence
  @confidence
end

#flag_assessment ⇒ String

Returns Whether the flag matches the content. Set once the review is done.

Returns:

  • (String) —

    Whether the flag matches the content. Set once the review is done



20
21
22
# File 'lib/getstream_ruby/generated/models/agent_review_summary_response.rb', line 20

def flag_assessment
  @flag_assessment
end

Returns The action Nora recommends. Set once the review is done.

Returns:

  • (String) —

    The action Nora recommends. Set once the review is done



23
24
25
# File 'lib/getstream_ruby/generated/models/agent_review_summary_response.rb', line 23

def recommended_action
  @recommended_action
end

#status ⇒ String

Returns pending, processing, done, failed, or skipped.

Returns:

  • (String) —

    pending, processing, done, failed, or skipped



17
18
19
# File 'lib/getstream_ruby/generated/models/agent_review_summary_response.rb', line 17

def status
  @status
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



35
36
37
38
39
40
41
42
# File 'lib/getstream_ruby/generated/models/agent_review_summary_response.rb', line 35

def self.json_field_mappings
  {
    confidence: 'confidence',
    status: 'status',
    flag_assessment: 'flag_assessment',
    recommended_action: 'recommended_action'
  }
end