Class: GetStream::Generated::Models::AgentReviewResponse
- Defined in:
- lib/getstream_ruby/generated/models/agent_review_response.rb
Instance Attribute Summary collapse
-
#agent_session_id ⇒ String
Session id of the agent run that produced this review.
-
#confidence ⇒ Float
The agent's confidence in its recommended action, from 0 to 1.
-
#context_incomplete ⇒ Boolean
True when the agent did not have the full context it needed.
-
#created_at ⇒ DateTime
When this review was recorded.
-
#flag_assessment ⇒ String
Whether the flag is supported, a likely false positive, or uncertain.
-
#judgments ⇒ Array<AgentReviewJudgmentResponse>
Per-label judgments, with the evidence the agent quoted.
-
#model_route ⇒ String
Model route that produced this review.
-
#reason ⇒ String
Why Nora chose the recommended action.
-
#recommended_action ⇒ String
Action the agent recommends for the item.
-
#skip_reason ⇒ String
Why the review was skipped or failed.
-
#status ⇒ String
Lifecycle status of the review.
-
#summary ⇒ String
Short summary of the review.
-
#usage ⇒ Object
Token usage reported for this review.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ AgentReviewResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ AgentReviewResponse
Initialize with attributes
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/getstream_ruby/generated/models/agent_review_response.rb', line 53 def initialize(attributes = {}) super(attributes) @context_incomplete = attributes.fetch(:context_incomplete) { attributes.fetch('context_incomplete', nil) } @created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) } @status = attributes.fetch(:status) { attributes.fetch('status', nil) } @agent_session_id = attributes.fetch(:agent_session_id) { attributes.fetch('agent_session_id', nil) } @confidence = attributes.fetch(:confidence) { attributes.fetch('confidence', nil) } @flag_assessment = attributes.fetch(:flag_assessment) { attributes.fetch('flag_assessment', nil) } @model_route = attributes.fetch(:model_route) { attributes.fetch('model_route', nil) } @reason = attributes.fetch(:reason) { attributes.fetch('reason', nil) } @recommended_action = attributes.fetch(:recommended_action) { attributes.fetch('recommended_action', nil) } @skip_reason = attributes.fetch(:skip_reason) { attributes.fetch('skip_reason', nil) } @summary = attributes.fetch(:summary) { attributes.fetch('summary', nil) } @judgments = attributes.fetch(:judgments) { attributes.fetch('judgments', nil) } @usage = attributes.fetch(:usage) { attributes.fetch('usage', nil) } end |
Instance Attribute Details
#agent_session_id ⇒ String
Returns Session id of the agent run that produced this review.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/agent_review_response.rb', line 23 def agent_session_id @agent_session_id end |
#confidence ⇒ Float
Returns The agent's confidence in its recommended action, from 0 to 1.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/agent_review_response.rb', line 26 def confidence @confidence end |
#context_incomplete ⇒ Boolean
Returns True when the agent did not have the full context it needed.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/agent_review_response.rb', line 14 def context_incomplete @context_incomplete end |
#created_at ⇒ DateTime
Returns When this review was recorded.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/agent_review_response.rb', line 17 def created_at @created_at end |
#flag_assessment ⇒ String
Returns Whether the flag is supported, a likely false positive, or uncertain.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/agent_review_response.rb', line 29 def flag_assessment @flag_assessment end |
#judgments ⇒ Array<AgentReviewJudgmentResponse>
Returns Per-label judgments, with the evidence the agent quoted.
47 48 49 |
# File 'lib/getstream_ruby/generated/models/agent_review_response.rb', line 47 def judgments @judgments end |
#model_route ⇒ String
Returns Model route that produced this review.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/agent_review_response.rb', line 32 def model_route @model_route end |
#reason ⇒ String
Returns Why Nora chose the recommended action.
35 36 37 |
# File 'lib/getstream_ruby/generated/models/agent_review_response.rb', line 35 def reason @reason end |
#recommended_action ⇒ String
Returns Action the agent recommends for the item.
38 39 40 |
# File 'lib/getstream_ruby/generated/models/agent_review_response.rb', line 38 def recommended_action @recommended_action end |
#skip_reason ⇒ String
Returns Why the review was skipped or failed. Set when status is skipped or failed.
41 42 43 |
# File 'lib/getstream_ruby/generated/models/agent_review_response.rb', line 41 def skip_reason @skip_reason end |
#status ⇒ String
Returns Lifecycle status of the review.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/agent_review_response.rb', line 20 def status @status end |
#summary ⇒ String
Returns Short summary of the review.
44 45 46 |
# File 'lib/getstream_ruby/generated/models/agent_review_response.rb', line 44 def summary @summary end |
#usage ⇒ Object
Returns Token usage reported for this review.
50 51 52 |
# File 'lib/getstream_ruby/generated/models/agent_review_response.rb', line 50 def usage @usage end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/getstream_ruby/generated/models/agent_review_response.rb', line 71 def self.json_field_mappings { context_incomplete: 'context_incomplete', created_at: 'created_at', status: 'status', agent_session_id: 'agent_session_id', confidence: 'confidence', flag_assessment: 'flag_assessment', model_route: 'model_route', reason: 'reason', recommended_action: 'recommended_action', skip_reason: 'skip_reason', summary: 'summary', judgments: 'judgments', usage: 'usage' } end |