@@ -418,6 +418,20 @@ def update!(**args)
418418 end
419419 end
420420
421+ # Tool to search public web data, powered by Vertex AI Search and Sec4
422+ # compliance.
423+ class GoogleCloudAiplatformV1beta1EnterpriseWebSearch
424+ include Google ::Apis ::Core ::Hashable
425+
426+ def initialize ( **args )
427+ update! ( **args )
428+ end
429+
430+ # Update properties of this object
431+ def update! ( **args )
432+ end
433+ end
434+
421435 # Code generated by the model that is meant to be executed, and the result
422436 # returned to the model. Generated when using the [FunctionDeclaration] tool and
423437 # [FunctionCallingConfig] mode is set to [Mode.CODE].
@@ -810,7 +824,19 @@ class GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata
810824 # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
811825 attr_accessor :prompt_tokens_details
812826
813- # Total token count for prompt and response candidates.
827+ # Output only. Number of tokens present in tool-use prompt(s).
828+ # Corresponds to the JSON property `toolUsePromptTokenCount`
829+ # @return [Fixnum]
830+ attr_accessor :tool_use_prompt_token_count
831+
832+ # Output only. List of modalities that were processed for tool-use request
833+ # inputs.
834+ # Corresponds to the JSON property `toolUsePromptTokensDetails`
835+ # @return [Array<Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ModalityTokenCount>]
836+ attr_accessor :tool_use_prompt_tokens_details
837+
838+ # Total token count for prompt, response candidates, and tool-use prompts (if
839+ # present).
814840 # Corresponds to the JSON property `totalTokenCount`
815841 # @return [Fixnum]
816842 attr_accessor :total_token_count
@@ -827,6 +853,8 @@ def update!(**args)
827853 @candidates_tokens_details = args [ :candidates_tokens_details ] if args . key? ( :candidates_tokens_details )
828854 @prompt_token_count = args [ :prompt_token_count ] if args . key? ( :prompt_token_count )
829855 @prompt_tokens_details = args [ :prompt_tokens_details ] if args . key? ( :prompt_tokens_details )
856+ @tool_use_prompt_token_count = args [ :tool_use_prompt_token_count ] if args . key? ( :tool_use_prompt_token_count )
857+ @tool_use_prompt_tokens_details = args [ :tool_use_prompt_tokens_details ] if args . key? ( :tool_use_prompt_tokens_details )
830858 @total_token_count = args [ :total_token_count ] if args . key? ( :total_token_count )
831859 end
832860 end
@@ -924,11 +952,6 @@ class GoogleCloudAiplatformV1beta1GenerationConfig
924952 # @return [Float]
925953 attr_accessor :temperature
926954
927- # Config for thinking features.
928- # Corresponds to the JSON property `thinkingConfig`
929- # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GenerationConfigThinkingConfig]
930- attr_accessor :thinking_config
931-
932955 # Optional. If specified, top-k sampling will be used.
933956 # Corresponds to the JSON property `topK`
934957 # @return [Float]
@@ -961,7 +984,6 @@ def update!(**args)
961984 @speech_config = args [ :speech_config ] if args . key? ( :speech_config )
962985 @stop_sequences = args [ :stop_sequences ] if args . key? ( :stop_sequences )
963986 @temperature = args [ :temperature ] if args . key? ( :temperature )
964- @thinking_config = args [ :thinking_config ] if args . key? ( :thinking_config )
965987 @top_k = args [ :top_k ] if args . key? ( :top_k )
966988 @top_p = args [ :top_p ] if args . key? ( :top_p )
967989 end
@@ -1033,27 +1055,6 @@ def update!(**args)
10331055 end
10341056 end
10351057
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-
10571058 # Tool to retrieve public web data for grounding, powered by Google.
10581059 class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
10591060 include Google ::Apis ::Core ::Hashable
@@ -1604,8 +1605,9 @@ class GoogleCloudAiplatformV1beta1Retrieval
16041605 attr_accessor :disable_attribution
16051606 alias_method :disable_attribution? , :disable_attribution
16061607
1607- # Retrieve from Vertex AI Search datastore for grounding. See https://cloud.
1608- # google.com/products/agent-builder
1608+ # Retrieve from Vertex AI Search datastore or engine for grounding. datastore
1609+ # and engine are mutually exclusive. See https://cloud.google.com/products/agent-
1610+ # builder
16091611 # Corresponds to the JSON property `vertexAiSearch`
16101612 # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1VertexAiSearch]
16111613 attr_accessor :vertex_ai_search
@@ -2021,6 +2023,12 @@ class GoogleCloudAiplatformV1beta1Tool
20212023 # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1ToolCodeExecution]
20222024 attr_accessor :code_execution
20232025
2026+ # Tool to search public web data, powered by Vertex AI Search and Sec4
2027+ # compliance.
2028+ # Corresponds to the JSON property `enterpriseWebSearch`
2029+ # @return [Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1EnterpriseWebSearch]
2030+ attr_accessor :enterprise_web_search
2031+
20242032 # Optional. Function tool type. One or more function declarations to be passed
20252033 # to the model along with the current user query. Model may decide to call a
20262034 # subset of these functions by populating FunctionCall in the response. User
@@ -2054,6 +2062,7 @@ def initialize(**args)
20542062 # Update properties of this object
20552063 def update! ( **args )
20562064 @code_execution = args [ :code_execution ] if args . key? ( :code_execution )
2065+ @enterprise_web_search = args [ :enterprise_web_search ] if args . key? ( :enterprise_web_search )
20572066 @function_declarations = args [ :function_declarations ] if args . key? ( :function_declarations )
20582067 @google_search = args [ :google_search ] if args . key? ( :google_search )
20592068 @google_search_retrieval = args [ :google_search_retrieval ] if args . key? ( :google_search_retrieval )
@@ -2115,12 +2124,13 @@ def update!(**args)
21152124 end
21162125 end
21172126
2118- # Retrieve from Vertex AI Search datastore for grounding. See https://cloud.
2119- # google.com/products/agent-builder
2127+ # Retrieve from Vertex AI Search datastore or engine for grounding. datastore
2128+ # and engine are mutually exclusive. See https://cloud.google.com/products/agent-
2129+ # builder
21202130 class GoogleCloudAiplatformV1beta1VertexAiSearch
21212131 include Google ::Apis ::Core ::Hashable
21222132
2123- # Required . Fully-qualified Vertex AI Search data store resource ID. Format: `
2133+ # Optional . Fully-qualified Vertex AI Search data store resource ID. Format: `
21242134 # projects/`project`/locations/`location`/collections/`collection`/dataStores/`
21252135 # dataStore``
21262136 # Corresponds to the JSON property `datastore`
0 commit comments