google-cloud-agentplatform 2.1.3__tar.gz → 2.2.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 (73) hide show
  1. {google_cloud_agentplatform-2.1.3/google_cloud_agentplatform.egg-info → google_cloud_agentplatform-2.2.0}/PKG-INFO +1 -1
  2. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/__init__.py +11 -2
  3. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_evals_common.py +20 -2
  4. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/evals.py +14 -0
  5. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/types/common.py +69 -25
  6. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/version.py +1 -1
  7. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0/google_cloud_agentplatform.egg-info}/PKG-INFO +1 -1
  8. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/LICENSE +0 -0
  9. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/README.md +0 -0
  10. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/__init__.py +0 -0
  11. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_bigquery_utils.py +0 -0
  12. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_datasets_utils.py +0 -0
  13. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_evals_builtin_tools.py +0 -0
  14. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_evals_constant.py +0 -0
  15. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_evals_data_converters.py +0 -0
  16. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_evals_metric_handlers.py +0 -0
  17. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_evals_metric_loaders.py +0 -0
  18. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_evals_utils.py +0 -0
  19. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_evals_visualization.py +0 -0
  20. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_gcs_utils.py +0 -0
  21. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_logging_utils.py +0 -0
  22. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_memory_bank_utils.py +0 -0
  23. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_observability_data_converter.py +0 -0
  24. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_operations_utils.py +0 -0
  25. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_prompt_management_utils.py +0 -0
  26. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_prompt_optimizer_utils.py +0 -0
  27. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_runtimes_utils.py +0 -0
  28. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_skills_utils.py +0 -0
  29. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/_transformers.py +0 -0
  30. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/a2a_task_events.py +0 -0
  31. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/a2a_tasks.py +0 -0
  32. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/client.py +0 -0
  33. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/datasets.py +0 -0
  34. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/endpoints.py +0 -0
  35. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/example_stores.py +0 -0
  36. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/feedback_contexts.py +0 -0
  37. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/feedback_entries.py +0 -0
  38. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/live.py +0 -0
  39. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/live_runtimes.py +0 -0
  40. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/memories.py +0 -0
  41. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/memory_banks.py +0 -0
  42. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/memory_revisions.py +0 -0
  43. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/model_garden.py +0 -0
  44. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/prompt_optimizer.py +0 -0
  45. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/prompts.py +0 -0
  46. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/rag.py +0 -0
  47. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/runtime_revisions.py +0 -0
  48. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/runtimes.py +0 -0
  49. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/sandbox_snapshots.py +0 -0
  50. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/sandbox_templates.py +0 -0
  51. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/sandboxes.py +0 -0
  52. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/session_events.py +0 -0
  53. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/sessions.py +0 -0
  54. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/skill_revisions.py +0 -0
  55. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/skills.py +0 -0
  56. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/types/__init__.py +0 -0
  57. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/types/agent_engines.py +0 -0
  58. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/types/evals.py +0 -0
  59. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/types/prompt_optimizer.py +0 -0
  60. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/_genai/types/prompts.py +0 -0
  61. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/frameworks/__init__.py +0 -0
  62. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/frameworks/a2a.py +0 -0
  63. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/frameworks/adk.py +0 -0
  64. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/frameworks/ag2.py +0 -0
  65. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/frameworks/langchain.py +0 -0
  66. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/frameworks/langgraph.py +0 -0
  67. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/agentplatform/frameworks/llama_index.py +0 -0
  68. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/google_cloud_agentplatform.egg-info/SOURCES.txt +0 -0
  69. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/google_cloud_agentplatform.egg-info/dependency_links.txt +0 -0
  70. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/google_cloud_agentplatform.egg-info/requires.txt +0 -0
  71. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/google_cloud_agentplatform.egg-info/top_level.txt +0 -0
  72. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/pyproject.toml +0 -0
  73. {google_cloud_agentplatform-2.1.3 → google_cloud_agentplatform-2.2.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-cloud-agentplatform
3
- Version: 2.1.3
3
+ Version: 2.2.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
@@ -54,8 +54,17 @@ def __getattr__(name): # type: ignore[no-untyped-def]
54
54
  global _genai_types
55
55
  if _genai_types is None:
56
56
  _genai_types = importlib.import_module("._genai.types", __name__)
57
- if "vertexai.types" not in sys.modules:
58
- sys.modules["vertexai.types"] = _genai_types
57
+ # `types` is an alias for `._genai.types` rather than a real submodule,
58
+ # so register it to keep
59
+ # `from agentplatform.types import TypeName`
60
+ # working without a prior attribute access. Spell it the google3 way:
61
+ # Copybara rewrites that prefix in both directions, and the external
62
+ # spelling fails its reversibility check. This key was `vertexai.types`,
63
+ # which both misnamed this package's own alias and shadowed the real
64
+ # `vertexai.types` module.
65
+ types_module_name = f"{__name__}.types"
66
+ if types_module_name not in sys.modules:
67
+ sys.modules[types_module_name] = _genai_types
59
68
  return _genai_types
60
69
 
61
70
  raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
@@ -37,6 +37,11 @@ from google.genai._gaos.types.interactions import functioncallstep
37
37
  from google.genai._gaos.types.interactions import functionresultstep
38
38
  from google.genai._gaos.types.interactions import modeloutputstep
39
39
  from google.genai._gaos.types.interactions import userinputstep
40
+
41
+ try:
42
+ from google.genai._gaos.utils.serializers import ALLOW_UNKNOWN_UNION_VARIANTS
43
+ except (ImportError, AttributeError):
44
+ ALLOW_UNKNOWN_UNION_VARIANTS = "speakeasy_allow_unknown_union_variants"
40
45
  from google.genai.models import Models
41
46
  import pandas as pd
42
47
  from tqdm import tqdm
@@ -775,7 +780,16 @@ def _interaction_dict_to_agent_data(
775
780
  Returns:
776
781
  An AgentData object with one or more ConversationTurns.
777
782
  """
778
- typed_interaction = interaction_types.Interaction.model_validate(interaction)
783
+ # A server response, so unknown step types must degrade rather than raise.
784
+ # `Step` is an open discriminated union: parse_open_union only falls back to
785
+ # the Unknown variant when the validation context carries
786
+ # ALLOW_UNKNOWN_UNION_VARIANTS, and raises without it so that a
787
+ # user-constructed request payload surfaces its mistakes locally. This
788
+ # payload comes off the Interactions API, so it is on the tolerant side of
789
+ # that line. _interaction_steps_to_events already drops steps it cannot map.
790
+ typed_interaction = interaction_types.Interaction.model_validate(
791
+ interaction, context={ALLOW_UNKNOWN_UNION_VARIANTS: True}
792
+ )
779
793
  all_events = _interaction_steps_to_events(typed_interaction.steps or [])
780
794
 
781
795
  # Group events into turns. Each UserInputStep starts a new turn.
@@ -1689,8 +1703,12 @@ def _resolve_interactions_to_eval_cases(
1689
1703
  break
1690
1704
  interaction_dict = json.loads(response.body)
1691
1705
  try:
1706
+ # Also a server response -- see _interaction_dict_to_agent_data.
1707
+ # Without the context a single step type this client does not
1708
+ # know about raised, and the except below turned that into a
1709
+ # `break`, silently truncating the interaction history.
1692
1710
  typed_interaction = interaction_types.Interaction.model_validate(
1693
- interaction_dict
1711
+ interaction_dict, context={ALLOW_UNKNOWN_UNION_VARIANTS: True}
1694
1712
  )
1695
1713
  except Exception as e:
1696
1714
  logger.warning("Failed to validate interaction model: %s", e)
@@ -215,6 +215,13 @@ def _CustomCodeExecutionSpec_from_vertex(
215
215
  getv(from_object, ["evaluation_function"]),
216
216
  )
217
217
 
218
+ if getv(from_object, ["codeExecutionRegion"]) is not None:
219
+ setv(
220
+ to_object,
221
+ ["code_execution_region"],
222
+ getv(from_object, ["codeExecutionRegion"]),
223
+ )
224
+
218
225
  return to_object
219
226
 
220
227
 
@@ -237,6 +244,13 @@ def _CustomCodeExecutionSpec_to_vertex(
237
244
  getv(from_object, ["remote_custom_function"]),
238
245
  )
239
246
 
247
+ if getv(from_object, ["code_execution_region"]) is not None:
248
+ setv(
249
+ to_object,
250
+ ["codeExecutionRegion"],
251
+ getv(from_object, ["code_execution_region"]),
252
+ )
253
+
240
254
  return to_object
241
255
 
242
256
 
@@ -328,6 +328,8 @@ class SandboxState(_common.CaseInSensitiveEnum):
328
328
  """Sandbox runtime is pausing."""
329
329
  STATE_RESUMING = "STATE_RESUMING"
330
330
  """Sandbox runtime is resuming."""
331
+ STATE_STOPPING = "STATE_STOPPING"
332
+ """Sandbox runtime is stopping."""
331
333
 
332
334
 
333
335
  class Protocol(_common.CaseInSensitiveEnum):
@@ -1705,6 +1707,10 @@ class CustomCodeExecutionSpec(_common.BaseModel):
1705
1707
  Instance is the evaluation instance, any fields populated in the instance
1706
1708
  are available to the function as instance[field_name].""",
1707
1709
  )
1710
+ code_execution_region: Optional[str] = Field(
1711
+ default=None,
1712
+ description="""Optional. The region to use for code execution. If set, the Code Execution Sandbox will be invoked in the specified region regardless of the request's originating region. Must be a region where the Code Execution Sandbox is available. Supported regions: northamerica-northeast1, southamerica-east1, us-central1, us-east1, us-east4, us-west1, us-west4, europe-central2, europe-north1, europe-southwest1, europe-west1, europe-west2, europe-west3, europe-west4, europe-west6, europe-west8, europe-west9, me-west1, asia-east1, asia-east2, asia-northeast1, asia-northeast3, asia-south1, asia-south2, asia-southeast1, australia-southeast2. If unset, the request's originating region is used; requests from regions where the sandbox is unavailable will fail with UNIMPLEMENTED.""",
1713
+ )
1708
1714
 
1709
1715
 
1710
1716
  class CustomCodeExecutionSpecDict(TypedDict, total=False):
@@ -1724,6 +1730,9 @@ class CustomCodeExecutionSpecDict(TypedDict, total=False):
1724
1730
  Instance is the evaluation instance, any fields populated in the instance
1725
1731
  are available to the function as instance[field_name]."""
1726
1732
 
1733
+ code_execution_region: Optional[str]
1734
+ """Optional. The region to use for code execution. If set, the Code Execution Sandbox will be invoked in the specified region regardless of the request's originating region. Must be a region where the Code Execution Sandbox is available. Supported regions: northamerica-northeast1, southamerica-east1, us-central1, us-east1, us-east4, us-west1, us-west4, europe-central2, europe-north1, europe-southwest1, europe-west1, europe-west2, europe-west3, europe-west4, europe-west6, europe-west8, europe-west9, me-west1, asia-east1, asia-east2, asia-northeast1, asia-northeast3, asia-south1, asia-south2, asia-southeast1, australia-southeast2. If unset, the request's originating region is used; requests from regions where the sandbox is unavailable will fail with UNIMPLEMENTED."""
1735
+
1727
1736
 
1728
1737
  CustomCodeExecutionSpecOrDict = Union[
1729
1738
  CustomCodeExecutionSpec, CustomCodeExecutionSpecDict
@@ -6665,7 +6674,7 @@ class ReservationAffinity(_common.BaseModel):
6665
6674
  )
6666
6675
  values: Optional[list[str]] = Field(
6667
6676
  default=None,
6668
- description="""Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation or reservation block.""",
6677
+ description="""Optional. Corresponds to the label values of a reservation resource. This must be the resource name of the reservation, reservation block, or reservation sub- block.""",
6669
6678
  )
6670
6679
 
6671
6680
 
@@ -6679,7 +6688,7 @@ class ReservationAffinityDict(TypedDict, total=False):
6679
6688
  """Required. Specifies the reservation affinity type."""
6680
6689
 
6681
6690
  values: Optional[list[str]]
6682
- """Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation or reservation block."""
6691
+ """Optional. Corresponds to the label values of a reservation resource. This must be the resource name of the reservation, reservation block, or reservation sub- block."""
6683
6692
 
6684
6693
 
6685
6694
  ReservationAffinityOrDict = Union[ReservationAffinity, ReservationAffinityDict]
@@ -11538,6 +11547,9 @@ class Memory(_common.BaseModel):
11538
11547
  default=None,
11539
11548
  description="""Optional. Represents the structured content of the memory.""",
11540
11549
  )
11550
+ context: Optional[str] = Field(
11551
+ default=None, description="""Optional. Represents the context of the memory."""
11552
+ )
11541
11553
 
11542
11554
 
11543
11555
  class MemoryDict(TypedDict, total=False):
@@ -11594,6 +11606,9 @@ class MemoryDict(TypedDict, total=False):
11594
11606
  structured_content: Optional[MemoryStructuredContentDict]
11595
11607
  """Optional. Represents the structured content of the memory."""
11596
11608
 
11609
+ context: Optional[str]
11610
+ """Optional. Represents the context of the memory."""
11611
+
11597
11612
 
11598
11613
  MemoryOrDict = Union[Memory, MemoryDict]
11599
11614
 
@@ -13281,6 +13296,10 @@ class MemoryRevision(_common.BaseModel):
13281
13296
  default=None,
13282
13297
  description="""Output only. Represents the structured value of the memory at the time of revision creation.""",
13283
13298
  )
13299
+ context: Optional[str] = Field(
13300
+ default=None,
13301
+ description="""Output only. Represents the context of the Memory Revision. The context may include context from both the historical revisions and the extracted content.""",
13302
+ )
13284
13303
 
13285
13304
 
13286
13305
  class MemoryRevisionDict(TypedDict, total=False):
@@ -13307,6 +13326,9 @@ class MemoryRevisionDict(TypedDict, total=False):
13307
13326
  structured_data: Optional[dict[str, Any]]
13308
13327
  """Output only. Represents the structured value of the memory at the time of revision creation."""
13309
13328
 
13329
+ context: Optional[str]
13330
+ """Output only. Represents the context of the Memory Revision. The context may include context from both the historical revisions and the extracted content."""
13331
+
13310
13332
 
13311
13333
  MemoryRevisionOrDict = Union[MemoryRevision, MemoryRevisionDict]
13312
13334
 
@@ -16564,13 +16586,13 @@ SandboxEnvironmentSpecComputerUseEnvironmentOrDict = Union[
16564
16586
 
16565
16587
 
16566
16588
  class SandboxEnvironmentSpecShellEnvironment(_common.BaseModel):
16567
- """The shell environment with customized settings."""
16589
+ """The shell environment."""
16568
16590
 
16569
16591
  pass
16570
16592
 
16571
16593
 
16572
16594
  class SandboxEnvironmentSpecShellEnvironmentDict(TypedDict, total=False):
16573
- """The shell environment with customized settings."""
16595
+ """The shell environment."""
16574
16596
 
16575
16597
  pass
16576
16598
 
@@ -16590,7 +16612,12 @@ class SandboxEnvironmentSpec(_common.BaseModel):
16590
16612
  Field(default=None, description="""Optional. The computer use environment.""")
16591
16613
  )
16592
16614
  shell_environment: Optional[SandboxEnvironmentSpecShellEnvironment] = Field(
16593
- default=None, description="""Optional. The shell environment."""
16615
+ default=None,
16616
+ description="""Optional. The shell environment for executing shell commands and scripts.""",
16617
+ )
16618
+ use_gke_td: Optional[bool] = Field(
16619
+ default=None,
16620
+ description="""Optional. Immutable. Whether to provision the SandboxEnvironment via the GKE TD pool. Immutable.""",
16594
16621
  )
16595
16622
 
16596
16623
 
@@ -16606,7 +16633,10 @@ class SandboxEnvironmentSpecDict(TypedDict, total=False):
16606
16633
  """Optional. The computer use environment."""
16607
16634
 
16608
16635
  shell_environment: Optional[SandboxEnvironmentSpecShellEnvironmentDict]
16609
- """Optional. The shell environment."""
16636
+ """Optional. The shell environment for executing shell commands and scripts."""
16637
+
16638
+ use_gke_td: Optional[bool]
16639
+ """Optional. Immutable. Whether to provision the SandboxEnvironment via the GKE TD pool. Immutable."""
16610
16640
 
16611
16641
 
16612
16642
  SandboxEnvironmentSpecOrDict = Union[SandboxEnvironmentSpec, SandboxEnvironmentSpecDict]
@@ -17551,11 +17581,11 @@ class SandboxEnvironmentTemplateEgressControlConfigDnsPeeringConfig(_common.Base
17551
17581
  )
17552
17582
  target_network: Optional[str] = Field(
17553
17583
  default=None,
17554
- description="""Required. The VPC network name in the target_project where the DNS zone specified by 'domain' is visible.""",
17584
+ description="""Required. The VPC network name in the target_project where the DNS zone specified by `domain` is visible.""",
17555
17585
  )
17556
17586
  target_project: Optional[str] = Field(
17557
17587
  default=None,
17558
- description="""Required. The project ID hosting the Cloud DNS managed zone that contains the 'domain'. The Vertex AI Service Agent requires the dns.peer role on this project.""",
17588
+ description="""Required. The project ID hosting the Cloud DNS managed zone that contains the `domain`. The Vertex AI Service Agent requires the dns.peer role on this project.""",
17559
17589
  )
17560
17590
 
17561
17591
 
@@ -17568,10 +17598,10 @@ class SandboxEnvironmentTemplateEgressControlConfigDnsPeeringConfigDict(
17568
17598
  """Required. The DNS name suffix of the zone being peered to, e.g., "my-internal-domain.corp.". Must end with a dot."""
17569
17599
 
17570
17600
  target_network: Optional[str]
17571
- """Required. The VPC network name in the target_project where the DNS zone specified by 'domain' is visible."""
17601
+ """Required. The VPC network name in the target_project where the DNS zone specified by `domain` is visible."""
17572
17602
 
17573
17603
  target_project: Optional[str]
17574
- """Required. The project ID hosting the Cloud DNS managed zone that contains the 'domain'. The Vertex AI Service Agent requires the dns.peer role on this project."""
17604
+ """Required. The project ID hosting the Cloud DNS managed zone that contains the `domain`. The Vertex AI Service Agent requires the dns.peer role on this project."""
17575
17605
 
17576
17606
 
17577
17607
  SandboxEnvironmentTemplateEgressControlConfigDnsPeeringConfigOrDict = Union[
@@ -17586,10 +17616,6 @@ class SandboxEnvironmentTemplateEgressControlConfig(_common.BaseModel):
17586
17616
  internet_access: Optional[bool] = Field(
17587
17617
  default=None, description="""Optional. Whether to allow internet access."""
17588
17618
  )
17589
- customer_vpc_network: Optional[str] = Field(
17590
- default=None,
17591
- description="""Optional. The customer VPC network that sandbox egress is routed into.""",
17592
- )
17593
17619
  dns_peering_configs: Optional[
17594
17620
  list[SandboxEnvironmentTemplateEgressControlConfigDnsPeeringConfig]
17595
17621
  ] = Field(
@@ -17598,7 +17624,7 @@ class SandboxEnvironmentTemplateEgressControlConfig(_common.BaseModel):
17598
17624
  )
17599
17625
  network_attachment: Optional[str] = Field(
17600
17626
  default=None,
17601
- description="""Optional. The name of the customer VPC NetworkAttachment used to draw a PSC interface IP into the customer VPC for sandbox egress.""",
17627
+ description="""Optional. The name of the customer VPC `NetworkAttachment` used to draw a PSC interface IP into the customer VPC for sandbox egress.""",
17602
17628
  )
17603
17629
 
17604
17630
 
@@ -17608,16 +17634,13 @@ class SandboxEnvironmentTemplateEgressControlConfigDict(TypedDict, total=False):
17608
17634
  internet_access: Optional[bool]
17609
17635
  """Optional. Whether to allow internet access."""
17610
17636
 
17611
- customer_vpc_network: Optional[str]
17612
- """Optional. The customer VPC network that sandbox egress is routed into."""
17613
-
17614
17637
  dns_peering_configs: Optional[
17615
17638
  list[SandboxEnvironmentTemplateEgressControlConfigDnsPeeringConfigDict]
17616
17639
  ]
17617
17640
  """Optional. DNS peering configurations that allow sandbox egress to resolve customer-internal domains via the customer VPC."""
17618
17641
 
17619
17642
  network_attachment: Optional[str]
17620
- """Optional. The name of the customer VPC NetworkAttachment used to draw a PSC interface IP into the customer VPC for sandbox egress."""
17643
+ """Optional. The name of the customer VPC `NetworkAttachment` used to draw a PSC interface IP into the customer VPC for sandbox egress."""
17621
17644
 
17622
17645
 
17623
17646
  SandboxEnvironmentTemplateEgressControlConfigOrDict = Union[
@@ -17873,6 +17896,10 @@ class SandboxEnvironmentTemplate(_common.BaseModel):
17873
17896
  default=None,
17874
17897
  description="""Optional. The configuration for private ingress (PSC-E) of this template. When set, the sandbox router is exposed privately via a PSC service attachment so VPC-SC customers can connect from their VPC over a private endpoint instead of the public internet. The resulting service attachment is surfaced on `SandboxEnvironment.connection_info.service_attachment`. Only the PSC-E (service-attachment/ingress) portion of `PrivateServiceConnectConfig` applies here: `enable_private_service_connect` and `project_allowlist` (the consumer projects allowed to connect). The nested `psc_interface_config` (PSC-I / egress) is not used for sandbox ingress; sandbox egress is configured via `egress_control_config` instead.""",
17875
17898
  )
17899
+ use_gke_td: Optional[bool] = Field(
17900
+ default=None,
17901
+ description="""Optional. Immutable. Whether to provision the SandboxEnvironmentTemplate via the GKE TD pool.""",
17902
+ )
17876
17903
 
17877
17904
 
17878
17905
  class SandboxEnvironmentTemplateDict(TypedDict, total=False):
@@ -17909,6 +17936,9 @@ class SandboxEnvironmentTemplateDict(TypedDict, total=False):
17909
17936
  ingress_control_config: Optional[PrivateServiceConnectConfigDict]
17910
17937
  """Optional. The configuration for private ingress (PSC-E) of this template. When set, the sandbox router is exposed privately via a PSC service attachment so VPC-SC customers can connect from their VPC over a private endpoint instead of the public internet. The resulting service attachment is surfaced on `SandboxEnvironment.connection_info.service_attachment`. Only the PSC-E (service-attachment/ingress) portion of `PrivateServiceConnectConfig` applies here: `enable_private_service_connect` and `project_allowlist` (the consumer projects allowed to connect). The nested `psc_interface_config` (PSC-I / egress) is not used for sandbox ingress; sandbox egress is configured via `egress_control_config` instead."""
17911
17938
 
17939
+ use_gke_td: Optional[bool]
17940
+ """Optional. Immutable. Whether to provision the SandboxEnvironmentTemplate via the GKE TD pool."""
17941
+
17912
17942
 
17913
17943
  SandboxEnvironmentTemplateOrDict = Union[
17914
17944
  SandboxEnvironmentTemplate, SandboxEnvironmentTemplateDict
@@ -18340,6 +18370,10 @@ class SandboxEnvironmentSnapshot(_common.BaseModel):
18340
18370
  default=None,
18341
18371
  description="""Output only. The timestamp when this SandboxEnvironment was most recently updated.""",
18342
18372
  )
18373
+ use_gke_td: Optional[bool] = Field(
18374
+ default=None,
18375
+ description="""Output only. Whether the source SandboxEnvironment uses the GKE TD pool.""",
18376
+ )
18343
18377
 
18344
18378
 
18345
18379
  class SandboxEnvironmentSnapshotDict(TypedDict, total=False):
@@ -18379,6 +18413,9 @@ class SandboxEnvironmentSnapshotDict(TypedDict, total=False):
18379
18413
  update_time: Optional[datetime.datetime]
18380
18414
  """Output only. The timestamp when this SandboxEnvironment was most recently updated."""
18381
18415
 
18416
+ use_gke_td: Optional[bool]
18417
+ """Output only. Whether the source SandboxEnvironment uses the GKE TD pool."""
18418
+
18382
18419
 
18383
18420
  SandboxEnvironmentSnapshotOrDict = Union[
18384
18421
  SandboxEnvironmentSnapshot, SandboxEnvironmentSnapshotDict
@@ -20965,6 +21002,10 @@ class SchemaPromptSpecAppBuilderData(_common.BaseModel):
20965
21002
  description="""Linked resources attached to the application by the user.""",
20966
21003
  )
20967
21004
  )
21005
+ deployed_regions: Optional[list[str]] = Field(
21006
+ default=None,
21007
+ description="""Optional. The Cloud Run regions in which the application is currently deployed. Used to rediscover and redeploy the app in the regions it already runs in, which may differ from the prompt's location.""",
21008
+ )
20968
21009
 
20969
21010
 
20970
21011
  class SchemaPromptSpecAppBuilderDataDict(TypedDict, total=False):
@@ -20979,6 +21020,9 @@ class SchemaPromptSpecAppBuilderDataDict(TypedDict, total=False):
20979
21020
  linked_resources: Optional[list[SchemaPromptSpecAppBuilderDataLinkedResourceDict]]
20980
21021
  """Linked resources attached to the application by the user."""
20981
21022
 
21023
+ deployed_regions: Optional[list[str]]
21024
+ """Optional. The Cloud Run regions in which the application is currently deployed. Used to rediscover and redeploy the app in the regions it already runs in, which may differ from the prompt's location."""
21025
+
20982
21026
 
20983
21027
  SchemaPromptSpecAppBuilderDataOrDict = Union[
20984
21028
  SchemaPromptSpecAppBuilderData, SchemaPromptSpecAppBuilderDataDict
@@ -28666,11 +28710,11 @@ AudioTranscriptionWordInfoOrDict = Union[
28666
28710
 
28667
28711
 
28668
28712
  class AudioTranscription(_common.BaseModel):
28669
- """The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate Part with its own AudioTranscription carrying the speaker_label."""
28713
+ """The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate `Part` with its own `AudioTranscription` carrying the `speaker_label`."""
28670
28714
 
28671
28715
  speaker_label: Optional[str] = Field(
28672
28716
  default=None,
28673
- description="""Optional. A label identifying the speaker of this audio segment (e.g. "spk_1", "spk_2"). Present when diarization is set.""",
28717
+ description="""Optional. A label identifying the speaker of this audio segment (e.g. `spk_1`, `spk_2`). Present when `diarization` is set.""",
28674
28718
  )
28675
28719
  text: Optional[str] = Field(
28676
28720
  default=None,
@@ -28678,21 +28722,21 @@ class AudioTranscription(_common.BaseModel):
28678
28722
  )
28679
28723
  words: Optional[list[AudioTranscriptionWordInfo]] = Field(
28680
28724
  default=None,
28681
- description="""Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set.""",
28725
+ description="""Optional. Detailed word-level transcriptions and timing details. Present when `word_timestamp` is set.""",
28682
28726
  )
28683
28727
 
28684
28728
 
28685
28729
  class AudioTranscriptionDict(TypedDict, total=False):
28686
- """The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate Part with its own AudioTranscription carrying the speaker_label."""
28730
+ """The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate `Part` with its own `AudioTranscription` carrying the `speaker_label`."""
28687
28731
 
28688
28732
  speaker_label: Optional[str]
28689
- """Optional. A label identifying the speaker of this audio segment (e.g. "spk_1", "spk_2"). Present when diarization is set."""
28733
+ """Optional. A label identifying the speaker of this audio segment (e.g. `spk_1`, `spk_2`). Present when `diarization` is set."""
28690
28734
 
28691
28735
  text: Optional[str]
28692
28736
  """Required. The transcription text of this audio segment."""
28693
28737
 
28694
28738
  words: Optional[list[AudioTranscriptionWordInfoDict]]
28695
- """Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set."""
28739
+ """Optional. Detailed word-level transcriptions and timing details. Present when `word_timestamp` is set."""
28696
28740
 
28697
28741
 
28698
28742
  AudioTranscriptionOrDict = Union[AudioTranscription, AudioTranscriptionDict]
@@ -14,4 +14,4 @@
14
14
  #
15
15
  """Version file for agentplatform."""
16
16
 
17
- __version__ = "2.1.3"
17
+ __version__ = "2.2.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-cloud-agentplatform
3
- Version: 2.1.3
3
+ Version: 2.2.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