Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1TextResponseFormat

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Configuration for text output format.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1TextResponseFormat

Returns a new instance of GenaiVertexV1beta1TextResponseFormat.



5248
5249
5250
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5248

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#mime_typeString

The MIME type of the text output. Corresponds to the JSON property mimeType

Returns:

  • (String)


5240
5241
5242
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5240

def mime_type
  @mime_type
end

#schemaGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1Struct

Struct represents a structured data value, consisting of fields which map to dynamically typed values. Corresponds to the JSON property schema



5246
5247
5248
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5246

def schema
  @schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5253
5254
5255
5256
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5253

def update!(**args)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
  @schema = args[:schema] if args.key?(:schema)
end