google-cloud-agentplatform 2.0.0__tar.gz → 2.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. {google_cloud_agentplatform-2.0.0/google_cloud_agentplatform.egg-info → google_cloud_agentplatform-2.1.0}/PKG-INFO +12 -8
  2. google_cloud_agentplatform-2.1.0/README.md +21 -0
  3. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/sandbox_templates.py +7 -0
  4. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/sandboxes.py +92 -2
  5. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/types/__init__.py +5 -3
  6. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/types/common.py +124 -112
  7. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/version.py +1 -1
  8. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0/google_cloud_agentplatform.egg-info}/PKG-INFO +12 -8
  9. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/pyproject.toml +4 -4
  10. google_cloud_agentplatform-2.0.0/README.md +0 -17
  11. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/LICENSE +0 -0
  12. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/__init__.py +0 -0
  13. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/__init__.py +0 -0
  14. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_bigquery_utils.py +0 -0
  15. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_datasets_utils.py +0 -0
  16. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_evals_builtin_tools.py +0 -0
  17. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_evals_common.py +0 -0
  18. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_evals_constant.py +0 -0
  19. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_evals_data_converters.py +0 -0
  20. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_evals_metric_handlers.py +0 -0
  21. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_evals_metric_loaders.py +0 -0
  22. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_evals_utils.py +0 -0
  23. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_evals_visualization.py +0 -0
  24. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_gcs_utils.py +0 -0
  25. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_logging_utils.py +0 -0
  26. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_memory_bank_utils.py +0 -0
  27. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_observability_data_converter.py +0 -0
  28. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_operations_utils.py +0 -0
  29. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_prompt_management_utils.py +0 -0
  30. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_prompt_optimizer_utils.py +0 -0
  31. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_runtimes_utils.py +0 -0
  32. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_skills_utils.py +0 -0
  33. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/_transformers.py +0 -0
  34. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/a2a_task_events.py +0 -0
  35. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/a2a_tasks.py +0 -0
  36. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/client.py +0 -0
  37. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/datasets.py +0 -0
  38. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/endpoints.py +0 -0
  39. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/evals.py +0 -0
  40. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/example_stores.py +0 -0
  41. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/feedback_contexts.py +0 -0
  42. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/feedback_entries.py +0 -0
  43. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/live.py +0 -0
  44. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/live_runtimes.py +0 -0
  45. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/memories.py +0 -0
  46. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/memory_banks.py +0 -0
  47. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/memory_revisions.py +0 -0
  48. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/model_garden.py +0 -0
  49. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/prompt_optimizer.py +0 -0
  50. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/prompts.py +0 -0
  51. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/rag.py +0 -0
  52. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/runtime_revisions.py +0 -0
  53. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/runtimes.py +0 -0
  54. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/sandbox_snapshots.py +0 -0
  55. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/session_events.py +0 -0
  56. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/sessions.py +0 -0
  57. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/skill_revisions.py +0 -0
  58. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/skills.py +0 -0
  59. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/types/agent_engines.py +0 -0
  60. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/types/evals.py +0 -0
  61. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/types/prompt_optimizer.py +0 -0
  62. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/_genai/types/prompts.py +0 -0
  63. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/frameworks/__init__.py +0 -0
  64. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/frameworks/a2a.py +0 -0
  65. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/frameworks/adk.py +0 -0
  66. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/frameworks/ag2.py +0 -0
  67. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/frameworks/langchain.py +0 -0
  68. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/frameworks/langgraph.py +0 -0
  69. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/agentplatform/frameworks/llama_index.py +0 -0
  70. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/google_cloud_agentplatform.egg-info/SOURCES.txt +0 -0
  71. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/google_cloud_agentplatform.egg-info/dependency_links.txt +0 -0
  72. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/google_cloud_agentplatform.egg-info/requires.txt +0 -0
  73. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/google_cloud_agentplatform.egg-info/top_level.txt +0 -0
  74. {google_cloud_agentplatform-2.0.0 → google_cloud_agentplatform-2.1.0}/setup.cfg +0 -0
@@ -1,19 +1,19 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-cloud-agentplatform
3
- Version: 2.0.0
3
+ Version: 2.1.0
4
4
  Summary: Google Cloud Agent Platform Client Library
5
5
  Author-email: Google LLC <googleapis-packages@google.com>
6
6
  License: Apache-2.0
7
- Classifier: Development Status :: 3 - Alpha
7
+ Classifier: Development Status :: 5 - Production/Stable
8
8
  Classifier: Intended Audience :: Developers
9
9
  Classifier: License :: OSI Approved :: Apache Software License
10
10
  Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.8
12
- Classifier: Programming Language :: Python :: 3.9
13
11
  Classifier: Programming Language :: Python :: 3.10
14
12
  Classifier: Programming Language :: Python :: 3.11
15
13
  Classifier: Programming Language :: Python :: 3.12
16
- Requires-Python: >=3.8
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Requires-Python: >=3.10
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
19
  Requires-Dist: google-auth
@@ -74,9 +74,9 @@ Provides-Extra: all
74
74
  Requires-Dist: google-cloud-agentplatform[a2a,adk,ag2,agent_engines,bigquery,evaluation,langchain,live,llama_index]; extra == "all"
75
75
  Dynamic: license-file
76
76
 
77
- # Google Cloud Agent Platform
77
+ # Gemini Enterprise Agent Platform
78
78
 
79
- This is the packaging directory for `google-cloud-agentplatform`.
79
+ Gemini Enterprise Agent Platform Client Library.
80
80
 
81
81
  ## Installation
82
82
 
@@ -85,9 +85,13 @@ This is the packaging directory for `google-cloud-agentplatform`.
85
85
  pip install google-cloud-agentplatform
86
86
 
87
87
  # With specific extras
88
+ pip install google-cloud-agentplatform[agent_engines]
89
+ pip install google-cloud-agentplatform[a2a]
88
90
  pip install google-cloud-agentplatform[adk]
89
91
  pip install google-cloud-agentplatform[langchain]
92
+ pip install google-cloud-agentplatform[ag2]
93
+ pip install google-cloud-agentplatform[llama_index]
90
94
  pip install google-cloud-agentplatform[evaluation]
91
95
  pip install google-cloud-agentplatform[bigquery]
96
+ pip install google-cloud-agentplatform[live]
92
97
  pip install google-cloud-agentplatform[all]
93
- ```
@@ -0,0 +1,21 @@
1
+ # Gemini Enterprise Agent Platform
2
+
3
+ Gemini Enterprise Agent Platform Client Library.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ # Core installation
9
+ pip install google-cloud-agentplatform
10
+
11
+ # With specific extras
12
+ pip install google-cloud-agentplatform[agent_engines]
13
+ pip install google-cloud-agentplatform[a2a]
14
+ pip install google-cloud-agentplatform[adk]
15
+ pip install google-cloud-agentplatform[langchain]
16
+ pip install google-cloud-agentplatform[ag2]
17
+ pip install google-cloud-agentplatform[llama_index]
18
+ pip install google-cloud-agentplatform[evaluation]
19
+ pip install google-cloud-agentplatform[bigquery]
20
+ pip install google-cloud-agentplatform[live]
21
+ pip install google-cloud-agentplatform[all]
@@ -62,6 +62,13 @@ def _CreateSandboxEnvironmentTemplateConfig_to_vertex(
62
62
  getv(from_object, ["egress_control_config"]),
63
63
  )
64
64
 
65
+ if getv(from_object, ["ingress_control_config"]) is not None:
66
+ setv(
67
+ parent_object,
68
+ ["ingressControlConfig"],
69
+ getv(from_object, ["ingress_control_config"]),
70
+ )
71
+
65
72
  return to_object
66
73
 
67
74
 
@@ -1038,7 +1038,14 @@ class Sandboxes(_api_module.BaseModule):
1038
1038
  get_operation_fn=self._get_sandbox_operation,
1039
1039
  poll_interval_seconds=poll_interval_seconds,
1040
1040
  )
1041
- if operation.response:
1041
+ # Only refresh via get() when the LRO response carries a resource
1042
+ # name. The pause LRO's response_type is declared as SandboxEnvironment
1043
+ # in the proto but the backend may return an empty payload for some
1044
+ # code paths, in which case operation.response.name is empty and a
1045
+ # get() call would produce a 404 with an unsubstituted {name} in the
1046
+ # request URL. Callers who want the post-pause state can call
1047
+ # sandboxes.get(name=name) explicitly.
1048
+ if operation.response and getattr(operation.response, "name", None):
1042
1049
  operation.response = self.get(name=operation.response.name)
1043
1050
  return operation
1044
1051
 
@@ -1084,7 +1091,11 @@ class Sandboxes(_api_module.BaseModule):
1084
1091
  get_operation_fn=self._get_sandbox_operation,
1085
1092
  poll_interval_seconds=poll_interval_seconds,
1086
1093
  )
1087
- if operation.response:
1094
+ # Only refresh via get() when the LRO response carries a resource
1095
+ # name. Symmetric guard with pause() above: protects against a backend
1096
+ # response payload without a name field, which would otherwise produce
1097
+ # a 404 with an unsubstituted {name} in the request URL.
1098
+ if operation.response and getattr(operation.response, "name", None):
1088
1099
  operation.response = self.get(name=operation.response.name)
1089
1100
  return operation
1090
1101
 
@@ -1157,6 +1168,85 @@ class Sandboxes(_api_module.BaseModule):
1157
1168
 
1158
1169
  return response
1159
1170
 
1171
+ def execute_bash(
1172
+ self,
1173
+ *,
1174
+ name: str,
1175
+ command: str,
1176
+ cwd: Optional[str] = None,
1177
+ timeout: Optional[int] = None,
1178
+ port: str = "8080",
1179
+ config: Optional[types.ExecuteCodeRuntimeSandboxConfigOrDict] = None,
1180
+ ) -> dict[str, Any]:
1181
+ """Runs a bash command in a shell sandbox.
1182
+
1183
+ The sandbox must have been created with a shell environment, either by
1184
+ passing `spec={"shell_environment": {}}` to `create()` or by referencing a
1185
+ template whose `default_container_category` is
1186
+ `DEFAULT_CONTAINER_CATEGORY_SHELL_SANDBOX`.
1187
+
1188
+ Unlike `send_command`, this authenticates with the caller's own credentials,
1189
+ so it needs no service account and no signed JWT.
1190
+
1191
+ Args:
1192
+ name (str):
1193
+ Required. The name of the agent engine sandbox to run the command
1194
+ in, of the form
1195
+ projects/*/locations/*/reasoningEngines/*/sandboxEnvironments/*.
1196
+ command (str):
1197
+ Required. The bash command to run.
1198
+ cwd (str):
1199
+ Optional. The working directory to run the command in. Defaults to
1200
+ the sandbox's workspace directory.
1201
+ timeout (int):
1202
+ Optional. Seconds to allow the command to run before the sandbox
1203
+ kills it. Defaults to the sandbox's own limit.
1204
+ port (str):
1205
+ Optional. The port the shell server listens on. Defaults to "8080".
1206
+ config (ExecuteCodeRuntimeSandboxConfigOrDict):
1207
+ Optional. The configuration for the request.
1208
+
1209
+ Returns:
1210
+ dict[str, Any]: The result of the command, with keys `stdout`,
1211
+ `stderr`, `returncode` and `duration_ms`. A command that exits
1212
+ non-zero is reported here rather than raised.
1213
+
1214
+ Raises:
1215
+ ValueError: If the sandbox returns no output.
1216
+ """
1217
+ request: dict[str, Any] = {"command": command}
1218
+ if cwd is not None:
1219
+ request["cwd"] = cwd
1220
+ if timeout is not None:
1221
+ request["timeout"] = timeout
1222
+
1223
+ # The sandbox proxy addresses the container by URI and port, and forwards
1224
+ # the JSON chunk as the POST body.
1225
+ response = self._execute_code(
1226
+ name=name,
1227
+ inputs=[
1228
+ types.Chunk(
1229
+ mime_type="application/x.sandbox-request-uri",
1230
+ data=b"/exec",
1231
+ ),
1232
+ types.Chunk(
1233
+ mime_type="application/x.sandbox-request-port",
1234
+ data=port.encode("utf-8"),
1235
+ ),
1236
+ types.Chunk(
1237
+ mime_type="application/json",
1238
+ data=json.dumps(request).encode("utf-8"),
1239
+ ),
1240
+ ],
1241
+ config=config,
1242
+ )
1243
+
1244
+ for output in response.outputs or []:
1245
+ if output.data:
1246
+ return json.loads(output.data.decode("utf-8"))
1247
+
1248
+ raise ValueError(f"The sandbox {name} returned no output for the command.")
1249
+
1160
1250
  def get(
1161
1251
  self,
1162
1252
  *,
@@ -1968,6 +1968,7 @@ from .common import SandboxEnvironmentTemplateOrDict
1968
1968
  from .common import SandboxEnvironmentTemplateResourceRequirements
1969
1969
  from .common import SandboxEnvironmentTemplateResourceRequirementsDict
1970
1970
  from .common import SandboxEnvironmentTemplateResourceRequirementsOrDict
1971
+ from .common import SandboxEnvironmentTemplateState
1971
1972
  from .common import SandboxState
1972
1973
  from .common import SavedQuery
1973
1974
  from .common import SavedQueryDict
@@ -3457,15 +3458,15 @@ __all__ = [
3457
3458
  "SandboxEnvironmentTemplateEgressControlConfig",
3458
3459
  "SandboxEnvironmentTemplateEgressControlConfigDict",
3459
3460
  "SandboxEnvironmentTemplateEgressControlConfigOrDict",
3460
- "CreateSandboxEnvironmentTemplateConfig",
3461
- "CreateSandboxEnvironmentTemplateConfigDict",
3462
- "CreateSandboxEnvironmentTemplateConfigOrDict",
3463
3461
  "PSCAutomationConfig",
3464
3462
  "PSCAutomationConfigDict",
3465
3463
  "PSCAutomationConfigOrDict",
3466
3464
  "PrivateServiceConnectConfig",
3467
3465
  "PrivateServiceConnectConfigDict",
3468
3466
  "PrivateServiceConnectConfigOrDict",
3467
+ "CreateSandboxEnvironmentTemplateConfig",
3468
+ "CreateSandboxEnvironmentTemplateConfigDict",
3469
+ "CreateSandboxEnvironmentTemplateConfigOrDict",
3469
3470
  "SandboxEnvironmentTemplate",
3470
3471
  "SandboxEnvironmentTemplateDict",
3471
3472
  "SandboxEnvironmentTemplateOrDict",
@@ -4309,6 +4310,7 @@ __all__ = [
4309
4310
  "Protocol",
4310
4311
  "DefaultContainerCategory",
4311
4312
  "PscAutomationState",
4313
+ "SandboxEnvironmentTemplateState",
4312
4314
  "PostSnapshotAction",
4313
4315
  "Framework",
4314
4316
  "SkillSource",
@@ -322,6 +322,12 @@ class SandboxState(_common.CaseInSensitiveEnum):
322
322
  """Sandbox has terminated with underlying runtime failure."""
323
323
  STATE_DELETED = "STATE_DELETED"
324
324
  """Sandbox runtime has been deleted."""
325
+ STATE_PAUSED = "STATE_PAUSED"
326
+ """Sandbox runtime is paused."""
327
+ STATE_PAUSING = "STATE_PAUSING"
328
+ """Sandbox runtime is pausing."""
329
+ STATE_RESUMING = "STATE_RESUMING"
330
+ """Sandbox runtime is resuming."""
325
331
 
326
332
 
327
333
  class Protocol(_common.CaseInSensitiveEnum):
@@ -359,6 +365,23 @@ class PscAutomationState(_common.CaseInSensitiveEnum):
359
365
  """The PSC service automation has failed."""
360
366
 
361
367
 
368
+ class SandboxEnvironmentTemplateState(_common.CaseInSensitiveEnum):
369
+ """Output only. The state of the sandbox environment template."""
370
+
371
+ UNSPECIFIED = "UNSPECIFIED"
372
+ """The default value. This value is unused."""
373
+ PROVISIONING = "PROVISIONING"
374
+ """Runtime resources are being allocated for the sandbox environment."""
375
+ ACTIVE = "ACTIVE"
376
+ """Sandbox runtime is ready for serving."""
377
+ DEPROVISIONING = "DEPROVISIONING"
378
+ """Sandbox runtime is halted, performing tear down tasks."""
379
+ DELETED = "DELETED"
380
+ """Sandbox has terminated with underlying runtime failure."""
381
+ FAILED = "FAILED"
382
+ """Sandbox has failed to provision."""
383
+
384
+
362
385
  class PostSnapshotAction(_common.CaseInSensitiveEnum):
363
386
  """Input only. Action to take on the source SandboxEnvironment after the snapshot is taken. This field is only used in CreateSandboxEnvironmentSnapshotRequest and it is not stored in the resource."""
364
387
 
@@ -17603,98 +17626,6 @@ SandboxEnvironmentTemplateEgressControlConfigOrDict = Union[
17603
17626
  ]
17604
17627
 
17605
17628
 
17606
- class CreateSandboxEnvironmentTemplateConfig(_common.BaseModel):
17607
- """Config for creating a Sandbox Template."""
17608
-
17609
- http_options: Optional[genai_types.HttpOptions] = Field(
17610
- default=None, description="""Used to override HTTP request options."""
17611
- )
17612
- wait_for_completion: Optional[bool] = Field(
17613
- default=True,
17614
- description="""Waits for the operation to complete before returning.""",
17615
- )
17616
- custom_container_environment: Optional[
17617
- SandboxEnvironmentTemplateCustomContainerEnvironment
17618
- ] = Field(
17619
- default=None,
17620
- description="""The custom container environment for the sandbox template.""",
17621
- )
17622
- default_container_environment: Optional[
17623
- SandboxEnvironmentTemplateDefaultContainerEnvironment
17624
- ] = Field(
17625
- default=None,
17626
- description="""The default container environment for the sandbox template.""",
17627
- )
17628
- egress_control_config: Optional[SandboxEnvironmentTemplateEgressControlConfig] = (
17629
- Field(
17630
- default=None,
17631
- description="""The egress control config for the sandbox template.""",
17632
- )
17633
- )
17634
-
17635
-
17636
- class CreateSandboxEnvironmentTemplateConfigDict(TypedDict, total=False):
17637
- """Config for creating a Sandbox Template."""
17638
-
17639
- http_options: Optional[genai_types.HttpOptions]
17640
- """Used to override HTTP request options."""
17641
-
17642
- wait_for_completion: Optional[bool]
17643
- """Waits for the operation to complete before returning."""
17644
-
17645
- custom_container_environment: Optional[
17646
- SandboxEnvironmentTemplateCustomContainerEnvironmentDict
17647
- ]
17648
- """The custom container environment for the sandbox template."""
17649
-
17650
- default_container_environment: Optional[
17651
- SandboxEnvironmentTemplateDefaultContainerEnvironmentDict
17652
- ]
17653
- """The default container environment for the sandbox template."""
17654
-
17655
- egress_control_config: Optional[SandboxEnvironmentTemplateEgressControlConfigDict]
17656
- """The egress control config for the sandbox template."""
17657
-
17658
-
17659
- CreateSandboxEnvironmentTemplateConfigOrDict = Union[
17660
- CreateSandboxEnvironmentTemplateConfig, CreateSandboxEnvironmentTemplateConfigDict
17661
- ]
17662
-
17663
-
17664
- class _CreateSandboxEnvironmentTemplateRequestParameters(_common.BaseModel):
17665
- """Parameters for creating Sandbox Environment Templates."""
17666
-
17667
- name: Optional[str] = Field(
17668
- default=None,
17669
- description="""Name of the agent runtime to create the template under.""",
17670
- )
17671
- display_name: Optional[str] = Field(
17672
- default=None, description="""The display name of the sandbox template."""
17673
- )
17674
- config: Optional[CreateSandboxEnvironmentTemplateConfig] = Field(
17675
- default=None, description=""""""
17676
- )
17677
-
17678
-
17679
- class _CreateSandboxEnvironmentTemplateRequestParametersDict(TypedDict, total=False):
17680
- """Parameters for creating Sandbox Environment Templates."""
17681
-
17682
- name: Optional[str]
17683
- """Name of the agent runtime to create the template under."""
17684
-
17685
- display_name: Optional[str]
17686
- """The display name of the sandbox template."""
17687
-
17688
- config: Optional[CreateSandboxEnvironmentTemplateConfigDict]
17689
- """"""
17690
-
17691
-
17692
- _CreateSandboxEnvironmentTemplateRequestParametersOrDict = Union[
17693
- _CreateSandboxEnvironmentTemplateRequestParameters,
17694
- _CreateSandboxEnvironmentTemplateRequestParametersDict,
17695
- ]
17696
-
17697
-
17698
17629
  class PSCAutomationConfig(_common.BaseModel):
17699
17630
  """PSC config that is used to automatically create PSC endpoints in the user projects."""
17700
17631
 
@@ -17798,6 +17729,105 @@ PrivateServiceConnectConfigOrDict = Union[
17798
17729
  ]
17799
17730
 
17800
17731
 
17732
+ class CreateSandboxEnvironmentTemplateConfig(_common.BaseModel):
17733
+ """Config for creating a Sandbox Template."""
17734
+
17735
+ http_options: Optional[genai_types.HttpOptions] = Field(
17736
+ default=None, description="""Used to override HTTP request options."""
17737
+ )
17738
+ wait_for_completion: Optional[bool] = Field(
17739
+ default=True,
17740
+ description="""Waits for the operation to complete before returning.""",
17741
+ )
17742
+ custom_container_environment: Optional[
17743
+ SandboxEnvironmentTemplateCustomContainerEnvironment
17744
+ ] = Field(
17745
+ default=None,
17746
+ description="""The custom container environment for the sandbox template.""",
17747
+ )
17748
+ default_container_environment: Optional[
17749
+ SandboxEnvironmentTemplateDefaultContainerEnvironment
17750
+ ] = Field(
17751
+ default=None,
17752
+ description="""The default container environment for the sandbox template.""",
17753
+ )
17754
+ egress_control_config: Optional[SandboxEnvironmentTemplateEgressControlConfig] = (
17755
+ Field(
17756
+ default=None,
17757
+ description="""The egress control config for the sandbox template.""",
17758
+ )
17759
+ )
17760
+ ingress_control_config: Optional[PrivateServiceConnectConfig] = Field(
17761
+ default=None,
17762
+ description="""The ingress control config for the sandbox template.""",
17763
+ )
17764
+
17765
+
17766
+ class CreateSandboxEnvironmentTemplateConfigDict(TypedDict, total=False):
17767
+ """Config for creating a Sandbox Template."""
17768
+
17769
+ http_options: Optional[genai_types.HttpOptions]
17770
+ """Used to override HTTP request options."""
17771
+
17772
+ wait_for_completion: Optional[bool]
17773
+ """Waits for the operation to complete before returning."""
17774
+
17775
+ custom_container_environment: Optional[
17776
+ SandboxEnvironmentTemplateCustomContainerEnvironmentDict
17777
+ ]
17778
+ """The custom container environment for the sandbox template."""
17779
+
17780
+ default_container_environment: Optional[
17781
+ SandboxEnvironmentTemplateDefaultContainerEnvironmentDict
17782
+ ]
17783
+ """The default container environment for the sandbox template."""
17784
+
17785
+ egress_control_config: Optional[SandboxEnvironmentTemplateEgressControlConfigDict]
17786
+ """The egress control config for the sandbox template."""
17787
+
17788
+ ingress_control_config: Optional[PrivateServiceConnectConfigDict]
17789
+ """The ingress control config for the sandbox template."""
17790
+
17791
+
17792
+ CreateSandboxEnvironmentTemplateConfigOrDict = Union[
17793
+ CreateSandboxEnvironmentTemplateConfig, CreateSandboxEnvironmentTemplateConfigDict
17794
+ ]
17795
+
17796
+
17797
+ class _CreateSandboxEnvironmentTemplateRequestParameters(_common.BaseModel):
17798
+ """Parameters for creating Sandbox Environment Templates."""
17799
+
17800
+ name: Optional[str] = Field(
17801
+ default=None,
17802
+ description="""Name of the agent runtime to create the template under.""",
17803
+ )
17804
+ display_name: Optional[str] = Field(
17805
+ default=None, description="""The display name of the sandbox template."""
17806
+ )
17807
+ config: Optional[CreateSandboxEnvironmentTemplateConfig] = Field(
17808
+ default=None, description=""""""
17809
+ )
17810
+
17811
+
17812
+ class _CreateSandboxEnvironmentTemplateRequestParametersDict(TypedDict, total=False):
17813
+ """Parameters for creating Sandbox Environment Templates."""
17814
+
17815
+ name: Optional[str]
17816
+ """Name of the agent runtime to create the template under."""
17817
+
17818
+ display_name: Optional[str]
17819
+ """The display name of the sandbox template."""
17820
+
17821
+ config: Optional[CreateSandboxEnvironmentTemplateConfigDict]
17822
+ """"""
17823
+
17824
+
17825
+ _CreateSandboxEnvironmentTemplateRequestParametersOrDict = Union[
17826
+ _CreateSandboxEnvironmentTemplateRequestParameters,
17827
+ _CreateSandboxEnvironmentTemplateRequestParametersDict,
17828
+ ]
17829
+
17830
+
17801
17831
  class SandboxEnvironmentTemplate(_common.BaseModel):
17802
17832
  """A sandbox environment template."""
17803
17833
 
@@ -17831,16 +17861,7 @@ class SandboxEnvironmentTemplate(_common.BaseModel):
17831
17861
  default=None,
17832
17862
  description="""Identifier. The resource name of the SandboxEnvironmentTemplate. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_environment_template}`""",
17833
17863
  )
17834
- state: Optional[
17835
- Literal[
17836
- "UNSPECIFIED",
17837
- "PROVISIONING",
17838
- "ACTIVE",
17839
- "DEPROVISIONING",
17840
- "DELETED",
17841
- "FAILED",
17842
- ]
17843
- ] = Field(
17864
+ state: Optional[SandboxEnvironmentTemplateState] = Field(
17844
17865
  default=None,
17845
17866
  description="""Output only. The state of the sandbox environment template.""",
17846
17867
  )
@@ -17879,16 +17900,7 @@ class SandboxEnvironmentTemplateDict(TypedDict, total=False):
17879
17900
  name: Optional[str]
17880
17901
  """Identifier. The resource name of the SandboxEnvironmentTemplate. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sandboxEnvironmentTemplates/{sandbox_environment_template}`"""
17881
17902
 
17882
- state: Optional[
17883
- Literal[
17884
- "UNSPECIFIED",
17885
- "PROVISIONING",
17886
- "ACTIVE",
17887
- "DEPROVISIONING",
17888
- "DELETED",
17889
- "FAILED",
17890
- ]
17891
- ]
17903
+ state: Optional[SandboxEnvironmentTemplateState]
17892
17904
  """Output only. The state of the sandbox environment template."""
17893
17905
 
17894
17906
  update_time: Optional[datetime.datetime]
@@ -14,4 +14,4 @@
14
14
  #
15
15
  """Version file for agentplatform."""
16
16
 
17
- __version__ = "2.0.0"
17
+ __version__ = "2.1.0"
@@ -1,19 +1,19 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-cloud-agentplatform
3
- Version: 2.0.0
3
+ Version: 2.1.0
4
4
  Summary: Google Cloud Agent Platform Client Library
5
5
  Author-email: Google LLC <googleapis-packages@google.com>
6
6
  License: Apache-2.0
7
- Classifier: Development Status :: 3 - Alpha
7
+ Classifier: Development Status :: 5 - Production/Stable
8
8
  Classifier: Intended Audience :: Developers
9
9
  Classifier: License :: OSI Approved :: Apache Software License
10
10
  Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.8
12
- Classifier: Programming Language :: Python :: 3.9
13
11
  Classifier: Programming Language :: Python :: 3.10
14
12
  Classifier: Programming Language :: Python :: 3.11
15
13
  Classifier: Programming Language :: Python :: 3.12
16
- Requires-Python: >=3.8
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Requires-Python: >=3.10
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
19
  Requires-Dist: google-auth
@@ -74,9 +74,9 @@ Provides-Extra: all
74
74
  Requires-Dist: google-cloud-agentplatform[a2a,adk,ag2,agent_engines,bigquery,evaluation,langchain,live,llama_index]; extra == "all"
75
75
  Dynamic: license-file
76
76
 
77
- # Google Cloud Agent Platform
77
+ # Gemini Enterprise Agent Platform
78
78
 
79
- This is the packaging directory for `google-cloud-agentplatform`.
79
+ Gemini Enterprise Agent Platform Client Library.
80
80
 
81
81
  ## Installation
82
82
 
@@ -85,9 +85,13 @@ This is the packaging directory for `google-cloud-agentplatform`.
85
85
  pip install google-cloud-agentplatform
86
86
 
87
87
  # With specific extras
88
+ pip install google-cloud-agentplatform[agent_engines]
89
+ pip install google-cloud-agentplatform[a2a]
88
90
  pip install google-cloud-agentplatform[adk]
89
91
  pip install google-cloud-agentplatform[langchain]
92
+ pip install google-cloud-agentplatform[ag2]
93
+ pip install google-cloud-agentplatform[llama_index]
90
94
  pip install google-cloud-agentplatform[evaluation]
91
95
  pip install google-cloud-agentplatform[bigquery]
96
+ pip install google-cloud-agentplatform[live]
92
97
  pip install google-cloud-agentplatform[all]
93
- ```
@@ -10,18 +10,18 @@ authors = [
10
10
  {name = "Google LLC", email = "googleapis-packages@google.com"}
11
11
  ]
12
12
  readme = "README.md"
13
- requires-python = ">=3.8"
13
+ requires-python = ">=3.10"
14
14
  license = {text = "Apache-2.0"}
15
15
  classifiers = [
16
- "Development Status :: 3 - Alpha",
16
+ "Development Status :: 5 - Production/Stable",
17
17
  "Intended Audience :: Developers",
18
18
  "License :: OSI Approved :: Apache Software License",
19
19
  "Programming Language :: Python :: 3",
20
- "Programming Language :: Python :: 3.8",
21
- "Programming Language :: Python :: 3.9",
22
20
  "Programming Language :: Python :: 3.10",
23
21
  "Programming Language :: Python :: 3.11",
24
22
  "Programming Language :: Python :: 3.12",
23
+ "Programming Language :: Python :: 3.13",
24
+ "Programming Language :: Python :: 3.14",
25
25
  ]
26
26
  dependencies = [
27
27
  "google-auth",
@@ -1,17 +0,0 @@
1
- # Google Cloud Agent Platform
2
-
3
- This is the packaging directory for `google-cloud-agentplatform`.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- # Core installation
9
- pip install google-cloud-agentplatform
10
-
11
- # With specific extras
12
- pip install google-cloud-agentplatform[adk]
13
- pip install google-cloud-agentplatform[langchain]
14
- pip install google-cloud-agentplatform[evaluation]
15
- pip install google-cloud-agentplatform[bigquery]
16
- pip install google-cloud-agentplatform[all]
17
- ```