Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1TextResponseFormat

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-specific output formatting.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1TextResponseFormat

Returns a new instance of GoogleCloudAiplatformV1beta1TextResponseFormat.



62218
62219
62220
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 62218

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

Instance Attribute Details

#mime_typeString

Optional. The IANA standard MIME type of the response. Corresponds to the JSON property mimeType

Returns:

  • (String)


62210
62211
62212
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 62210

def mime_type
  @mime_type
end

#schemaObject

Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON. Corresponds to the JSON property schema

Returns:

  • (Object)


62216
62217
62218
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 62216

def schema
  @schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



62223
62224
62225
62226
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 62223

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