Skip to content
Merged
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 @@
{
".": "2.2.0"
".": "2.1.3"
}
15 changes: 0 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
# Changelog

## [2.2.0](https://github.com/googleapis/python-aiplatform/compare/v2.1.3...v2.2.0) (2026-09-22)


### Features

* Update discovery doc ([6ad6fe8](https://github.com/googleapis/python-aiplatform/commit/6ad6fe8829c437b37012f2d0ff4f8a1ad2f95bac))


### Bug Fixes

* Allow unknown union variants when validating gaos responses in evals ([a9c4e6e](https://github.com/googleapis/python-aiplatform/commit/a9c4e6ee29111a57ae5fdb637da923b928280a2d))
* Resolve vertexai.types against agentplatform.types ([5af2f8e](https://github.com/googleapis/python-aiplatform/commit/5af2f8e70784252a1ec50d59ce8805a01170acfe))
* Resolve vertexai.types against agentplatform.types ([36a47bd](https://github.com/googleapis/python-aiplatform/commit/36a47bd6f43194333a6291af0b06b46ed8960d35))
* Resolve vertexai.types against agentplatform.types ([75ecb3b](https://github.com/googleapis/python-aiplatform/commit/75ecb3b5c6cb610c8fec5c72c698996c0919e962))

## [2.1.3](https://github.com/googleapis/python-aiplatform/compare/v2.1.0...v2.1.3) (2026-09-15)


Expand Down
7 changes: 7 additions & 0 deletions agentplatform/_genai/memory_banks.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,13 @@ def _ReasoningEngine_from_vertex(
if getv(from_object, ["trafficConfig"]) is not None:
setv(to_object, ["traffic_config"], getv(from_object, ["trafficConfig"]))

if getv(from_object, ["revisionGarbageCollectionStrategy"]) is not None:
setv(
to_object,
["revision_garbage_collection_strategy"],
getv(from_object, ["revisionGarbageCollectionStrategy"]),
)

return to_object


Expand Down
7 changes: 7 additions & 0 deletions agentplatform/_genai/runtimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,13 @@ def _ReasoningEngine_from_vertex(
if getv(from_object, ["trafficConfig"]) is not None:
setv(to_object, ["traffic_config"], getv(from_object, ["trafficConfig"]))

if getv(from_object, ["revisionGarbageCollectionStrategy"]) is not None:
setv(
to_object,
["revision_garbage_collection_strategy"],
getv(from_object, ["revisionGarbageCollectionStrategy"]),
)

return to_object


Expand Down
12 changes: 12 additions & 0 deletions agentplatform/_genai/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1682,6 +1682,12 @@
from .common import ReasoningEngineContextSpecOrDict
from .common import ReasoningEngineDict
from .common import ReasoningEngineOrDict
from .common import ReasoningEngineRevisionGarbageCollectionStrategy
from .common import ReasoningEngineRevisionGarbageCollectionStrategyDict
from .common import ReasoningEngineRevisionGarbageCollectionStrategyKeepNLatest
from .common import ReasoningEngineRevisionGarbageCollectionStrategyKeepNLatestDict
from .common import ReasoningEngineRevisionGarbageCollectionStrategyKeepNLatestOrDict
from .common import ReasoningEngineRevisionGarbageCollectionStrategyOrDict
from .common import ReasoningEngineRuntimeRevision
from .common import ReasoningEngineRuntimeRevisionDict
from .common import ReasoningEngineRuntimeRevisionOrDict
Expand Down Expand Up @@ -2888,6 +2894,12 @@
"ReasoningEngineTrafficConfig",
"ReasoningEngineTrafficConfigDict",
"ReasoningEngineTrafficConfigOrDict",
"ReasoningEngineRevisionGarbageCollectionStrategyKeepNLatest",
"ReasoningEngineRevisionGarbageCollectionStrategyKeepNLatestDict",
"ReasoningEngineRevisionGarbageCollectionStrategyKeepNLatestOrDict",
"ReasoningEngineRevisionGarbageCollectionStrategy",
"ReasoningEngineRevisionGarbageCollectionStrategyDict",
"ReasoningEngineRevisionGarbageCollectionStrategyOrDict",
"ReasoningEngine",
"ReasoningEngineDict",
"ReasoningEngineOrDict",
Expand Down
65 changes: 63 additions & 2 deletions agentplatform/_genai/types/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ class State(_common.CaseInSensitiveEnum):
"""The unspecified state."""
ACTIVE = "ACTIVE"
"""Is deployed and ready to be used."""
DEPRECATED = "DEPRECATED"
"""Is deprecated, may not be used, only preserved for historical purposes."""
ARCHIVED = "ARCHIVED"
"""Is archived and can no longer receive traffic, only preserved for historical purposes."""


class MemoryType(_common.CaseInSensitiveEnum):
Expand Down Expand Up @@ -8906,6 +8906,56 @@ class ReasoningEngineTrafficConfigDict(TypedDict, total=False):
]


class ReasoningEngineRevisionGarbageCollectionStrategyKeepNLatest(_common.BaseModel):
"""Keeps only the latest N Runtime Revisions active."""

max_revisions: Optional[int] = Field(
default=None,
description="""Required. Specifies the maximum number of Runtime Revisions to keep active. If an update to Reasoning Engine would result in exceeding this number of active Runtime Revisions, a new Runtime Revision will be created, while the oldest Runtime Revision will be automatically deleted, providing it's not configured to serve traffic via `traffic_config`. If the oldest Runtime Revision is configured to serve traffic, the update will fail validation. No changes will be made to the Reasoning Engine, existing Runtime Revisions, and no new Runtime Revision will be created.""",
)


class ReasoningEngineRevisionGarbageCollectionStrategyKeepNLatestDict(
TypedDict, total=False
):
"""Keeps only the latest N Runtime Revisions active."""

max_revisions: Optional[int]
"""Required. Specifies the maximum number of Runtime Revisions to keep active. If an update to Reasoning Engine would result in exceeding this number of active Runtime Revisions, a new Runtime Revision will be created, while the oldest Runtime Revision will be automatically deleted, providing it's not configured to serve traffic via `traffic_config`. If the oldest Runtime Revision is configured to serve traffic, the update will fail validation. No changes will be made to the Reasoning Engine, existing Runtime Revisions, and no new Runtime Revision will be created."""


ReasoningEngineRevisionGarbageCollectionStrategyKeepNLatestOrDict = Union[
ReasoningEngineRevisionGarbageCollectionStrategyKeepNLatest,
ReasoningEngineRevisionGarbageCollectionStrategyKeepNLatestDict,
]


class ReasoningEngineRevisionGarbageCollectionStrategy(_common.BaseModel):
"""Configures garbage collection of Runtime Revisions."""

keep_n_latest: Optional[
ReasoningEngineRevisionGarbageCollectionStrategyKeepNLatest
] = Field(
default=None,
description="""Optional. Keeps only the latest N Runtime Revisions active.""",
)


class ReasoningEngineRevisionGarbageCollectionStrategyDict(TypedDict, total=False):
"""Configures garbage collection of Runtime Revisions."""

keep_n_latest: Optional[
ReasoningEngineRevisionGarbageCollectionStrategyKeepNLatestDict
]
"""Optional. Keeps only the latest N Runtime Revisions active."""


ReasoningEngineRevisionGarbageCollectionStrategyOrDict = Union[
ReasoningEngineRevisionGarbageCollectionStrategy,
ReasoningEngineRevisionGarbageCollectionStrategyDict,
]


class ReasoningEngine(_common.BaseModel):
"""An agent runtime."""

Expand Down Expand Up @@ -8951,6 +9001,12 @@ class ReasoningEngine(_common.BaseModel):
default=None,
description="""Optional. Traffic distribution configuration for the Reasoning Engine.""",
)
revision_garbage_collection_strategy: Optional[
ReasoningEngineRevisionGarbageCollectionStrategy
] = Field(
default=None,
description="""Optional. Configures garbage collection of Runtime Revisions.""",
)


class ReasoningEngineDict(TypedDict, total=False):
Expand Down Expand Up @@ -8989,6 +9045,11 @@ class ReasoningEngineDict(TypedDict, total=False):
traffic_config: Optional[ReasoningEngineTrafficConfigDict]
"""Optional. Traffic distribution configuration for the Reasoning Engine."""

revision_garbage_collection_strategy: Optional[
ReasoningEngineRevisionGarbageCollectionStrategyDict
]
"""Optional. Configures garbage collection of Runtime Revisions."""


ReasoningEngineOrDict = Union[ReasoningEngine, ReasoningEngineDict]

Expand Down
2 changes: 1 addition & 1 deletion agentplatform/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
#
"""Version file for agentplatform."""

__version__ = "2.2.0"
__version__ = "2.1.3"
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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {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__ = "2.2.0"
__version__ = "2.1.3"
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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {x-release-please-version}
2 changes: 1 addition & 1 deletion google/cloud/aiplatform_v1beta1/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__ = "2.2.0" # {x-release-please-version}
__version__ = "2.1.3" # {x-release-please-version}
2 changes: 1 addition & 1 deletion pypi/_vertex_ai_placeholder/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# limitations under the License.
#

__version__ = "2.2.0"
__version__ = "2.1.3"
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-aiplatform",
"version": "2.2.0"
"version": "2.1.3"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-aiplatform",
"version": "2.2.0"
"version": "2.1.3"
},
"snippets": [
{
Expand Down
Loading