Class: Google::Cloud::AIPlatform::V1::GenerationConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/aiplatform/v1/content.rb

Overview

Generation config.

Instance Attribute Summary collapse

Instance Attribute Details

#candidate_count::Integer

Returns Optional. Number of candidates to generate.

Returns:

  • (::Integer)

    Optional. Number of candidates to generate.



162
163
164
165
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162

class GenerationConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#frequency_penalty::Float

Returns Optional. Frequency penalties.

Returns:

  • (::Float)

    Optional. Frequency penalties.



162
163
164
165
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162

class GenerationConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#max_output_tokens::Integer

Returns Optional. The maximum number of output tokens to generate per message.

Returns:

  • (::Integer)

    Optional. The maximum number of output tokens to generate per message.



162
163
164
165
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162

class GenerationConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#presence_penalty::Float

Returns Optional. Positive penalties.

Returns:

  • (::Float)

    Optional. Positive penalties.



162
163
164
165
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162

class GenerationConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#response_mime_type::String

Returns Optional. Output response mimetype of the generated candidate text. Supported mimetype:

  • text/plain: (default) Text output.
  • application/json: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.

Returns:

  • (::String)

    Optional. Output response mimetype of the generated candidate text. Supported mimetype:

    • text/plain: (default) Text output.
    • application/json: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.


162
163
164
165
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162

class GenerationConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#response_schema::Google::Cloud::AIPlatform::V1::Schema

Returns Optional. The Schema object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an OpenAPI 3.0 schema object. If set, a compatible response_mime_type must also be set. Compatible mimetypes: application/json: Schema for JSON response.

Returns:

  • (::Google::Cloud::AIPlatform::V1::Schema)

    Optional. The Schema object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an OpenAPI 3.0 schema object. If set, a compatible response_mime_type must also be set. Compatible mimetypes: application/json: Schema for JSON response.



162
163
164
165
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162

class GenerationConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#stop_sequences::Array<::String>

Returns Optional. Stop sequences.

Returns:

  • (::Array<::String>)

    Optional. Stop sequences.



162
163
164
165
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162

class GenerationConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#temperature::Float

Returns Optional. Controls the randomness of predictions.

Returns:

  • (::Float)

    Optional. Controls the randomness of predictions.



162
163
164
165
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162

class GenerationConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#top_k::Float

Returns Optional. If specified, top-k sampling will be used.

Returns:

  • (::Float)

    Optional. If specified, top-k sampling will be used.



162
163
164
165
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162

class GenerationConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#top_p::Float

Returns Optional. If specified, nucleus sampling will be used.

Returns:

  • (::Float)

    Optional. If specified, nucleus sampling will be used.



162
163
164
165
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 162

class GenerationConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end