Class: Google::Genai::Types::Candidate

Inherits:
Base
  • Object
show all
Defined in:
lib/google/genai/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject

Returns the value of attribute content.



74
75
76
# File 'lib/google/genai/types.rb', line 74

def content
  @content
end

#finish_reasonObject

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_ratingsObject

Returns the value of attribute safety_ratings.



74
75
76
# File 'lib/google/genai/types.rb', line 74

def safety_ratings
  @safety_ratings
end