Skip to content

feat: Add v1beta1 service clients for session service #5212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
3 changes: 3 additions & 0 deletions google/cloud/aiplatform/compat/services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@
from google.cloud.aiplatform_v1beta1.services.reasoning_engine_execution_service import (
client as reasoning_engine_execution_service_client_v1beta1,
)
from google.cloud.aiplatform_v1beta1.services.session_service import (
client as session_service_client_v1beta1,
)
from google.cloud.aiplatform_v1beta1.services.schedule_service import (
client as schedule_service_client_v1beta1,
)
Expand Down
13 changes: 13 additions & 0 deletions google/cloud/aiplatform/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
prediction_service_client_v1beta1,
prediction_service_async_client_v1beta1,
schedule_service_client_v1beta1,
session_service_client_v1beta1,
tensorboard_service_client_v1beta1,
vizier_service_client_v1beta1,
model_garden_service_client_v1beta1,
Expand Down Expand Up @@ -963,6 +964,17 @@ class ExampleStoreClientWithOverride(ClientWithOverride):
)


class SessionClientWithOverride(ClientWithOverride):
_is_temporary = True
_default_version = compat.V1BETA1
_version_map = (
(
compat.V1BETA1,
session_service_client_v1beta1.SessionServiceClient,
),
)


class ReasoningEngineClientWithOverride(ClientWithOverride):
_is_temporary = True
_default_version = compat.V1BETA1
Expand Down Expand Up @@ -1062,6 +1074,7 @@ class VertexRagClientWithOverride(ClientWithOverride):
PersistentResourceClientWithOverride,
ReasoningEngineClientWithOverride,
ReasoningEngineExecutionClientWithOverride,
SessionClientWithOverride,
AgentEngineClientWithOverride,
AgentEngineExecutionClientWithOverride,
ModelMonitoringClientWithOverride,
Expand Down
15 changes: 15 additions & 0 deletions vertexai/agent_engines/preview/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""SDK for Agent Engine resources in preview."""
15 changes: 15 additions & 0 deletions vertexai/agent_engines/preview/sessions/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
"""SDK for Agent Engine session resources in preview."""
Empty file.