@@ -73,6 +73,13 @@ class GoogleCloudAiplatformV1beta1Blob
7373 # @return [String]
7474 attr_accessor :data
7575
76+ # Optional. Display name of the blob. Used to provide a label or filename to
77+ # distinguish blobs. This field is only returned in PromptMessage for prompt
78+ # management. It is not currently used in the Gemini GenerateContent calls.
79+ # Corresponds to the JSON property `displayName`
80+ # @return [String]
81+ attr_accessor :display_name
82+
7683 # Required. The IANA standard MIME type of the source data.
7784 # Corresponds to the JSON property `mimeType`
7885 # @return [String]
@@ -85,6 +92,7 @@ def initialize(**args)
8592 # Update properties of this object
8693 def update! ( **args )
8794 @data = args [ :data ] if args . key? ( :data )
95+ @display_name = args [ :display_name ] if args . key? ( :display_name )
8896 @mime_type = args [ :mime_type ] if args . key? ( :mime_type )
8997 end
9098 end
@@ -356,6 +364,11 @@ def update!(**args)
356364 class GoogleCloudAiplatformV1beta1CountTokensResponse
357365 include Google ::Apis ::Core ::Hashable
358366
367+ # Output only. List of modalities that were processed in the request input.
368+ # Corresponds to the JSON property `promptTokensDetails`
369+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
370+ attr_accessor :prompt_tokens_details
371+
359372 # The total number of billable characters counted across all instances from the
360373 # request.
361374 # Corresponds to the JSON property `totalBillableCharacters`
@@ -373,6 +386,7 @@ def initialize(**args)
373386
374387 # Update properties of this object
375388 def update! ( **args )
389+ @prompt_tokens_details = args [ :prompt_tokens_details ] if args . key? ( :prompt_tokens_details )
376390 @total_billable_characters = args [ :total_billable_characters ] if args . key? ( :total_billable_characters )
377391 @total_tokens = args [ :total_tokens ] if args . key? ( :total_tokens )
378392 end
@@ -435,6 +449,14 @@ def update!(**args)
435449 class GoogleCloudAiplatformV1beta1FileData
436450 include Google ::Apis ::Core ::Hashable
437451
452+ # Optional. Display name of the file data. Used to provide a label or filename
453+ # to distinguish file datas. This field is only returned in PromptMessage for
454+ # prompt management. It is not currently used in the Gemini GenerateContent
455+ # calls.
456+ # Corresponds to the JSON property `displayName`
457+ # @return [String]
458+ attr_accessor :display_name
459+
438460 # Required. URI.
439461 # Corresponds to the JSON property `fileUri`
440462 # @return [String]
@@ -451,6 +473,7 @@ def initialize(**args)
451473
452474 # Update properties of this object
453475 def update! ( **args )
476+ @display_name = args [ :display_name ] if args . key? ( :display_name )
454477 @file_uri = args [ :file_uri ] if args . key? ( :file_uri )
455478 @mime_type = args [ :mime_type ] if args . key? ( :mime_type )
456479 end
@@ -678,6 +701,11 @@ class GoogleCloudAiplatformV1beta1GenerateContentResponse
678701 # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Candidate>]
679702 attr_accessor :candidates
680703
704+ # Output only. Timestamp when the request is made to the server.
705+ # Corresponds to the JSON property `createTime`
706+ # @return [String]
707+ attr_accessor :create_time
708+
681709 # Output only. The model version used to generate the response.
682710 # Corresponds to the JSON property `modelVersion`
683711 # @return [String]
@@ -688,6 +716,12 @@ class GoogleCloudAiplatformV1beta1GenerateContentResponse
688716 # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback]
689717 attr_accessor :prompt_feedback
690718
719+ # Output only. response_id is used to identify each response. It is the encoding
720+ # of the event_id.
721+ # Corresponds to the JSON property `responseId`
722+ # @return [String]
723+ attr_accessor :response_id
724+
691725 # Usage metadata about response(s).
692726 # Corresponds to the JSON property `usageMetadata`
693727 # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata]
@@ -700,8 +734,10 @@ def initialize(**args)
700734 # Update properties of this object
701735 def update! ( **args )
702736 @candidates = args [ :candidates ] if args . key? ( :candidates )
737+ @create_time = args [ :create_time ] if args . key? ( :create_time )
703738 @model_version = args [ :model_version ] if args . key? ( :model_version )
704739 @prompt_feedback = args [ :prompt_feedback ] if args . key? ( :prompt_feedback )
740+ @response_id = args [ :response_id ] if args . key? ( :response_id )
705741 @usage_metadata = args [ :usage_metadata ] if args . key? ( :usage_metadata )
706742 end
707743 end
@@ -741,6 +777,11 @@ def update!(**args)
741777 class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
742778 include Google ::Apis ::Core ::Hashable
743779
780+ # Output only. List of modalities of the cached content in the request input.
781+ # Corresponds to the JSON property `cacheTokensDetails`
782+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
783+ attr_accessor :cache_tokens_details
784+
744785 # Output only. Number of tokens in the cached part in the input (the cached
745786 # content).
746787 # Corresponds to the JSON property `cachedContentTokenCount`
@@ -752,13 +793,23 @@ class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
752793 # @return [Fixnum]
753794 attr_accessor :candidates_token_count
754795
796+ # Output only. List of modalities that were returned in the response.
797+ # Corresponds to the JSON property `candidatesTokensDetails`
798+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
799+ attr_accessor :candidates_tokens_details
800+
755801 # Number of tokens in the request. When `cached_content` is set, this is still
756802 # the total effective prompt size meaning this includes the number of tokens in
757803 # the cached content.
758804 # Corresponds to the JSON property `promptTokenCount`
759805 # @return [Fixnum]
760806 attr_accessor :prompt_token_count
761807
808+ # Output only. List of modalities that were processed in the request input.
809+ # Corresponds to the JSON property `promptTokensDetails`
810+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
811+ attr_accessor :prompt_tokens_details
812+
762813 # Total token count for prompt and response candidates.
763814 # Corresponds to the JSON property `totalTokenCount`
764815 # @return [Fixnum]
@@ -770,9 +821,12 @@ def initialize(**args)
770821
771822 # Update properties of this object
772823 def update! ( **args )
824+ @cache_tokens_details = args [ :cache_tokens_details ] if args . key? ( :cache_tokens_details )
773825 @cached_content_token_count = args [ :cached_content_token_count ] if args . key? ( :cached_content_token_count )
774826 @candidates_token_count = args [ :candidates_token_count ] if args . key? ( :candidates_token_count )
827+ @candidates_tokens_details = args [ :candidates_tokens_details ] if args . key? ( :candidates_tokens_details )
775828 @prompt_token_count = args [ :prompt_token_count ] if args . key? ( :prompt_token_count )
829+ @prompt_tokens_details = args [ :prompt_tokens_details ] if args . key? ( :prompt_tokens_details )
776830 @total_token_count = args [ :total_token_count ] if args . key? ( :total_token_count )
777831 end
778832 end
@@ -870,6 +924,11 @@ class GoogleCloudAiplatformV1beta1GenerationConfig
870924 # @return [Float]
871925 attr_accessor :temperature
872926
927+ # Config for thinking features.
928+ # Corresponds to the JSON property `thinkingConfig`
929+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig]
930+ attr_accessor :thinking_config
931+
873932 # Optional. If specified, top-k sampling will be used.
874933 # Corresponds to the JSON property `topK`
875934 # @return [Float]
@@ -902,6 +961,7 @@ def update!(**args)
902961 @speech_config = args [ :speech_config ] if args . key? ( :speech_config )
903962 @stop_sequences = args [ :stop_sequences ] if args . key? ( :stop_sequences )
904963 @temperature = args [ :temperature ] if args . key? ( :temperature )
964+ @thinking_config = args [ :thinking_config ] if args . key? ( :thinking_config )
905965 @top_k = args [ :top_k ] if args . key? ( :top_k )
906966 @top_p = args [ :top_p ] if args . key? ( :top_p )
907967 end
@@ -973,6 +1033,27 @@ def update!(**args)
9731033 end
9741034 end
9751035
1036+ # Config for thinking features.
1037+ class GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig
1038+ include Google ::Apis ::Core ::Hashable
1039+
1040+ # Optional. Indicates whether to include thoughts in the response. If true,
1041+ # thoughts are returned only when available.
1042+ # Corresponds to the JSON property `includeThoughts`
1043+ # @return [Boolean]
1044+ attr_accessor :include_thoughts
1045+ alias_method :include_thoughts? , :include_thoughts
1046+
1047+ def initialize ( **args )
1048+ update! ( **args )
1049+ end
1050+
1051+ # Update properties of this object
1052+ def update! ( **args )
1053+ @include_thoughts = args [ :include_thoughts ] if args . key? ( :include_thoughts )
1054+ end
1055+ end
1056+
9761057 # Tool to retrieve public web data for grounding, powered by Google.
9771058 class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
9781059 include Google ::Apis ::Core ::Hashable
@@ -1233,6 +1314,31 @@ def update!(**args)
12331314 end
12341315 end
12351316
1317+ # Represents token counting info for a single modality.
1318+ class GoogleCloudAiplatformV1beta1ModalityTokenCount
1319+ include Google ::Apis ::Core ::Hashable
1320+
1321+ # The modality associated with this token count.
1322+ # Corresponds to the JSON property `modality`
1323+ # @return [String]
1324+ attr_accessor :modality
1325+
1326+ # Number of tokens.
1327+ # Corresponds to the JSON property `tokenCount`
1328+ # @return [Fixnum]
1329+ attr_accessor :token_count
1330+
1331+ def initialize ( **args )
1332+ update! ( **args )
1333+ end
1334+
1335+ # Update properties of this object
1336+ def update! ( **args )
1337+ @modality = args [ :modality ] if args . key? ( :modality )
1338+ @token_count = args [ :token_count ] if args . key? ( :token_count )
1339+ end
1340+ end
1341+
12361342 # A datatype containing media that is part of a multi-part `Content` message. A `
12371343 # Part` consists of data which has an associated datatype. A `Part` can only
12381344 # contain one of the accepted types in `Part.data`. A `Part` must have a fixed
0 commit comments