Class: Google::Genai::Types::Candidate
- Defined in:
- lib/google/genai/types.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#finish_reason ⇒ Object
Returns the value of attribute finish_reason.
-
#safety_ratings ⇒ Object
Returns the value of attribute safety_ratings.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Candidate
constructor
A new instance of Candidate.
Constructor Details
#initialize(attributes = {}) ⇒ Candidate
Returns a new instance of Candidate.
76 77 78 79 |
# File 'lib/google/genai/types.rb', line 76 def initialize(attributes = {}) super self.content = Content.new(self.content) if self.content.is_a?(Hash) end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
74 75 76 |
# File 'lib/google/genai/types.rb', line 74 def content @content end |
#finish_reason ⇒ Object
Returns the value of attribute finish_reason.
74 75 76 |
# File 'lib/google/genai/types.rb', line 74 def finish_reason @finish_reason end |
#safety_ratings ⇒ Object
Returns the value of attribute safety_ratings.
74 75 76 |
# File 'lib/google/genai/types.rb', line 74 def end |