Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateSyntheticDataRequest
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GenerateSyntheticDataRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
Request message for DataFoundryService.GenerateSyntheticData.
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
Required.
-
#examples ⇒ Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SyntheticExample>
Optional.
-
#output_field_specs ⇒ Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1OutputFieldSpec>
Required.
-
#task_description ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TaskDescriptionStrategy
Defines a generation strategy based on a high-level task description.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1GenerateSyntheticDataRequest
constructor
A new instance of GoogleCloudAiplatformV1GenerateSyntheticDataRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1GenerateSyntheticDataRequest
Returns a new instance of GoogleCloudAiplatformV1GenerateSyntheticDataRequest.
15607 15608 15609 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15607 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
Required. The number of synthetic examples to generate. For this stateless API,
the count is limited to a small number.
Corresponds to the JSON property count
15589 15590 15591 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15589 def count @count end |
#examples ⇒ Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SyntheticExample>
Optional. A list of few-shot examples to guide the model's output style and
format.
Corresponds to the JSON property examples
15595 15596 15597 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15595 def examples @examples end |
#output_field_specs ⇒ Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1OutputFieldSpec>
Required. The schema of the desired output, defined by a list of fields.
Corresponds to the JSON property outputFieldSpecs
15600 15601 15602 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15600 def output_field_specs @output_field_specs end |
#task_description ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1TaskDescriptionStrategy
Defines a generation strategy based on a high-level task description.
Corresponds to the JSON property taskDescription
15605 15606 15607 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15605 def task_description @task_description end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15612 15613 15614 15615 15616 15617 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15612 def update!(**args) @count = args[:count] if args.key?(:count) @examples = args[:examples] if args.key?(:examples) @output_field_specs = args[:output_field_specs] if args.key?(:output_field_specs) @task_description = args[:task_description] if args.key?(:task_description) end |