Class: Google::Cloud::AIPlatform::V1::GenerationConfig
- Inherits:
-
Object
- Object
- Google::Cloud::AIPlatform::V1::GenerationConfig
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/aiplatform/v1/content.rb
Overview
Generation config.
Defined Under Namespace
Classes: RoutingConfig, ThinkingConfig
Instance Attribute Summary collapse
-
#candidate_count ⇒ ::Integer
Optional.
-
#frequency_penalty ⇒ ::Float
Optional.
-
#image_config ⇒ ::Google::Cloud::AIPlatform::V1::ImageConfig
Optional.
-
#logprobs ⇒ ::Integer
Optional.
-
#max_output_tokens ⇒ ::Integer
Optional.
-
#presence_penalty ⇒ ::Float
Optional.
-
#response_json_schema ⇒ ::Google::Protobuf::Value
Optional.
-
#response_logprobs ⇒ ::Boolean
Optional.
-
#response_mime_type ⇒ ::String
Optional.
-
#response_schema ⇒ ::Google::Cloud::AIPlatform::V1::Schema
Optional.
-
#routing_config ⇒ ::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig
Optional.
-
#seed ⇒ ::Integer
Optional.
-
#speech_config ⇒ ::Google::Cloud::AIPlatform::V1::SpeechConfig
Optional.
-
#stop_sequences ⇒ ::Array<::String>
Optional.
-
#temperature ⇒ ::Float
Optional.
-
#thinking_config ⇒ ::Google::Cloud::AIPlatform::V1::GenerationConfig::ThinkingConfig
Optional.
-
#top_k ⇒ ::Float
Optional.
-
#top_p ⇒ ::Float
Optional.
Instance Attribute Details
#candidate_count ⇒ ::Integer
Returns Optional. Number of candidates to generate.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#frequency_penalty ⇒ ::Float
Returns Optional. Frequency penalties.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#image_config ⇒ ::Google::Cloud::AIPlatform::V1::ImageConfig
Returns Optional. Config for image generation features.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#logprobs ⇒ ::Integer
Returns Optional. Logit probabilities.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#max_output_tokens ⇒ ::Integer
Returns Optional. The maximum number of output tokens to generate per message.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#presence_penalty ⇒ ::Float
Returns Optional. Positive penalties.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#response_json_schema ⇒ ::Google::Protobuf::Value
Returns Optional. Output schema of the generated response. This is an alternative
to response_schema that accepts JSON Schema.
If set, response_schema must be omitted, but response_mime_type is
required.
While the full JSON Schema may be sent, not all features are supported. Specifically, only the following properties are supported:
$id$defs$ref$anchortypeformattitledescriptionenum(for strings and numbers)itemsprefixItemsminItemsmaxItemsminimummaximumanyOfoneOf(interpreted the same asanyOf)propertiesadditionalPropertiesrequired
The non-standard propertyOrdering property may also be set.
Cyclic references are unrolled to a limited degree and, as such, may only
be used within non-required properties. (Nullable properties are not
sufficient.) If $ref is set on a sub-schema, no other properties, except
for than those starting as a $, may be set.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#response_logprobs ⇒ ::Boolean
Returns Optional. If true, export the logprobs results in response.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end 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.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#routing_config ⇒ ::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig
Returns Optional. Routing configuration.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#seed ⇒ ::Integer
Returns Optional. Seed.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#speech_config ⇒ ::Google::Cloud::AIPlatform::V1::SpeechConfig
Returns Optional. The speech generation config.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#stop_sequences ⇒ ::Array<::String>
Returns Optional. Stop sequences.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#temperature ⇒ ::Float
Returns Optional. Controls the randomness of predictions.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#thinking_config ⇒ ::Google::Cloud::AIPlatform::V1::GenerationConfig::ThinkingConfig
Returns Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#top_k ⇒ ::Float
Returns Optional. If specified, top-k sampling will be used.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#top_p ⇒ ::Float
Returns Optional. If specified, nucleus sampling will be used.
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'proto_docs/google/cloud/aiplatform/v1/content.rb', line 346 class GenerationConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The configuration for routing the request to a specific model. # @!attribute [rw] auto_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode] # Automated routing. # # Note: The following fields are mutually exclusive: `auto_mode`, `manual_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] manual_mode # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::ManualRoutingMode] # Manual routing. # # Note: The following fields are mutually exclusive: `manual_mode`, `auto_mode`. If a field in that set is populated, all other fields in the set will automatically be cleared. class RoutingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # When automated routing is specified, the routing will be determined by # the pretrained routing model and customer provided model routing # preference. # @!attribute [rw] model_routing_preference # @return [::Google::Cloud::AIPlatform::V1::GenerationConfig::RoutingConfig::AutoRoutingMode::ModelRoutingPreference] # The model routing preference. class AutoRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The model routing preference. module ModelRoutingPreference # Unspecified model routing preference. UNKNOWN = 0 # Prefer higher quality over low cost. PRIORITIZE_QUALITY = 1 # Balanced model routing preference. BALANCED = 2 # Prefer lower cost over higher quality. PRIORITIZE_COST = 3 end end # When manual routing is set, the specified model will be used directly. # @!attribute [rw] model_name # @return [::String] # The model name to use. Only the public LLM models are accepted. e.g. # 'gemini-1.5-pro-001'. class ManualRoutingMode include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end # Config for thinking features. # @!attribute [rw] include_thoughts # @return [::Boolean] # Indicates whether to include thoughts in the response. # If true, thoughts are returned only when available. # @!attribute [rw] thinking_budget # @return [::Integer] # Optional. Indicates the thinking budget in tokens. # This is only applied when enable_thinking is true. class ThinkingConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |