Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.119.0"
".": "1.120.0"
}
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Changelog

## [1.120.0](https://github.com/googleapis/python-aiplatform/compare/v1.119.0...v1.120.0) (2025-10-08)


### Features

* Add ability to use existing sessions for streaming_agent_run_with_events calls. ([0a369ea](https://github.com/googleapis/python-aiplatform/commit/0a369eacaa4e21e8055ef7c2e0f4c6da3a9298f8))
* Add DeploymentTier enum to DeployedIndex ([89a26c1](https://github.com/googleapis/python-aiplatform/commit/89a26c15b8a15c8698192dc283e5839729ad3e66))
* Add labels field for Predict API for Imagen use case (v1beta) ([89a26c1](https://github.com/googleapis/python-aiplatform/commit/89a26c15b8a15c8698192dc283e5839729ad3e66))
* Auto-generated CL for //google/cloud/aiplatform:aiplatform_v1_public_proto_gen ([89a26c1](https://github.com/googleapis/python-aiplatform/commit/89a26c15b8a15c8698192dc283e5839729ad3e66))
* Expose PSC for CustomModel ([d02099c](https://github.com/googleapis/python-aiplatform/commit/d02099cf200f7e372ad0c38f98a5b8c92bcc581c))
* GenAI Client(evals) - Add `get_evaluation_set` and `get_evaluation_item` methods to Vertex AI GenAI SDK evals ([7757886](https://github.com/googleapis/python-aiplatform/commit/77578867ff7c4e8a9c4618481821cded32b4b135))
* GenAI Client(evals) - Add `show` method for EvaluationRun class in Vertex AI GenAI SDK evals ([0c932b9](https://github.com/googleapis/python-aiplatform/commit/0c932b99bafde099734cf136828583de23fbaeb6))
* Migrate vertex ai session service to use agent engine sdk ([b72df1c](https://github.com/googleapis/python-aiplatform/commit/b72df1c3e418c4b87ecb92e1506e7f3fe8da3994))
* Migrate vertex_ai_session_service to use Agent Engine SDK ([55b54a2](https://github.com/googleapis/python-aiplatform/commit/55b54a21005587338abdd66c7605f534294b0c94))
* Migrate vertex_ai_session_service to use Agent Engine SDK ([03772e2](https://github.com/googleapis/python-aiplatform/commit/03772e2a87f2fc6c66a69220e004522cc6ba1f94))


### Bug Fixes

* GenAI Client(evals) - Parse user defined rubrics correctly to LLM metric ([64b0665](https://github.com/googleapis/python-aiplatform/commit/64b0665169b045ccfd16e537af2e45a4dd7977e0))


### Documentation

* Fix Sessions SDK docstrings ([0077bde](https://github.com/googleapis/python-aiplatform/commit/0077bdebe62d0363c1faacd5f6e5562086dff080))

## [1.119.0](https://github.com/googleapis/python-aiplatform/compare/v1.118.0...v1.119.0) (2025-10-03)


Expand Down
2 changes: 1 addition & 1 deletion google/cloud/aiplatform/gapic_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
12 changes: 6 additions & 6 deletions google/cloud/aiplatform/utils/pipeline_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ def __init__(
self._input_artifacts = copy.deepcopy(input_artifacts or {})
self._failure_policy = failure_policy
self._default_runtime = default_runtime
self._parsed_schema_version = packaging.version.parse(schema_version)
self._is_version_gt_2 = self._parsed_schema_version > packaging.version.parse(
"2.0.0"
)

@classmethod
def from_job_spec_json(
Expand Down Expand Up @@ -188,9 +192,7 @@ def build(self) -> Dict[str, Any]:
"Pipeline root must be specified, either during "
"compile time, or when calling the service."
)
if packaging.version.parse(self._schema_version) > packaging.version.parse(
"2.0.0"
):
if self._is_version_gt_2:
parameter_values_key = "parameterValues"
else:
parameter_values_key = "parameters"
Expand Down Expand Up @@ -243,9 +245,7 @@ def _get_vertex_value(
"pipeline job input definitions.".format(name)
)

if packaging.version.parse(self._schema_version) <= packaging.version.parse(
"2.0.0"
):
if not self._is_version_gt_2:
result = {}
if self._parameter_types[name] == "INT":
result["intValue"] = value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
2 changes: 1 addition & 1 deletion google/cloud/aiplatform/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# limitations under the License.
#

__version__ = "1.119.0"
__version__ = "1.120.0"
2 changes: 1 addition & 1 deletion google/cloud/aiplatform_v1/gapic_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "1.119.0" # {x-release-please-version}
__version__ = "1.120.0" # {x-release-please-version}
18 changes: 9 additions & 9 deletions google/cloud/aiplatform_v1/services/migration_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,40 +265,40 @@ def parse_dataset_path(path: str) -> Dict[str, str]:
@staticmethod
def dataset_path(
project: str,
location: str,
dataset: str,
) -> str:
"""Returns a fully-qualified dataset string."""
return "projects/{project}/datasets/{dataset}".format(
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
project=project,
location=location,
dataset=dataset,
)

@staticmethod
def parse_dataset_path(path: str) -> Dict[str, str]:
"""Parses a dataset path into its component segments."""
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
m = re.match(
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
path,
)
return m.groupdict() if m else {}

@staticmethod
def dataset_path(
project: str,
location: str,
dataset: str,
) -> str:
"""Returns a fully-qualified dataset string."""
return "projects/{project}/locations/{location}/datasets/{dataset}".format(
return "projects/{project}/datasets/{dataset}".format(
project=project,
location=location,
dataset=dataset,
)

@staticmethod
def parse_dataset_path(path: str) -> Dict[str, str]:
"""Parses a dataset path into its component segments."""
m = re.match(
r"^projects/(?P<project>.+?)/locations/(?P<location>.+?)/datasets/(?P<dataset>.+?)$",
path,
)
m = re.match(r"^projects/(?P<project>.+?)/datasets/(?P<dataset>.+?)$", path)
return m.groupdict() if m else {}

@staticmethod
Expand Down
3 changes: 3 additions & 0 deletions google/cloud/aiplatform_v1/types/accelerator_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ class AcceleratorType(proto.Enum):
Nvidia B200 GPU.
NVIDIA_GB200 (17):
Nvidia GB200 GPU.
NVIDIA_RTX_PRO_6000 (18):
Nvidia RTX Pro 6000 GPU.
TPU_V2 (6):
TPU v2.
TPU_V3 (7):
Expand All @@ -87,6 +89,7 @@ class AcceleratorType(proto.Enum):
NVIDIA_H200_141GB = 15
NVIDIA_B200 = 16
NVIDIA_GB200 = 17
NVIDIA_RTX_PRO_6000 = 18
TPU_V2 = 6
TPU_V3 = 7
TPU_V4_POD = 10
Expand Down
23 changes: 23 additions & 0 deletions google/cloud/aiplatform_v1/types/index_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,31 @@ class DeployedIndex(proto.Message):

Note: we only support up to 5 deployment groups(not
including 'default').
deployment_tier (google.cloud.aiplatform_v1.types.DeployedIndex.DeploymentTier):
Optional. The deployment tier that the index is deployed to.
DEPLOYMENT_TIER_UNSPECIFIED will use a system-chosen default
tier.
psc_automation_configs (MutableSequence[google.cloud.aiplatform_v1.types.PSCAutomationConfig]):
Optional. If set for PSC deployed index, PSC connection will
be automatically created after deployment is done and the
endpoint information is populated in
private_endpoints.psc_automated_endpoints.
"""

class DeploymentTier(proto.Enum):
r"""Tiers encapsulate serving time attributes like latency and
throughput.

Values:
DEPLOYMENT_TIER_UNSPECIFIED (0):
Default deployment tier.
STORAGE (2):
Optimized for costs.
"""

DEPLOYMENT_TIER_UNSPECIFIED = 0
STORAGE = 2

id: str = proto.Field(
proto.STRING,
number=1,
Expand Down Expand Up @@ -407,6 +425,11 @@ class DeployedIndex(proto.Message):
proto.STRING,
number=11,
)
deployment_tier: DeploymentTier = proto.Field(
proto.ENUM,
number=18,
enum=DeploymentTier,
)
psc_automation_configs: MutableSequence[service_networking.PSCAutomationConfig] = (
proto.RepeatedField(
proto.MESSAGE,
Expand Down
Loading