google-cloud-agentplatform 2.8.0__tar.gz → 2.9.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.8.0/google_cloud_agentplatform.egg-info → google_cloud_agentplatform-2.9.0}/PKG-INFO +2 -2
  2. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_runtimes_utils.py +5 -66
  3. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/feedback_entries.py +2 -2
  4. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/types/__init__.py +8 -0
  5. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/types/common.py +64 -10
  6. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/frameworks/adk.py +7 -3
  7. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/version.py +1 -1
  8. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0/google_cloud_agentplatform.egg-info}/PKG-INFO +2 -2
  9. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/google_cloud_agentplatform.egg-info/requires.txt +1 -1
  10. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/pyproject.toml +3 -3
  11. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/LICENSE +0 -0
  12. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/README.md +0 -0
  13. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/__init__.py +0 -0
  14. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/__init__.py +0 -0
  15. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_bigquery_utils.py +0 -0
  16. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_datasets_utils.py +0 -0
  17. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_evals_builtin_tools.py +0 -0
  18. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_evals_common.py +0 -0
  19. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_evals_constant.py +0 -0
  20. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_evals_data_converters.py +0 -0
  21. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_evals_metric_handlers.py +0 -0
  22. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_evals_metric_loaders.py +0 -0
  23. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_evals_utils.py +0 -0
  24. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_evals_visualization.py +0 -0
  25. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_gcs_utils.py +0 -0
  26. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_logging_utils.py +0 -0
  27. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_memory_bank_utils.py +0 -0
  28. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_observability_data_converter.py +0 -0
  29. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_operations_utils.py +0 -0
  30. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_prompt_management_utils.py +0 -0
  31. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_prompt_optimizer_utils.py +0 -0
  32. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_skills_utils.py +0 -0
  33. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/_transformers.py +0 -0
  34. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/a2a_task_events.py +0 -0
  35. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/a2a_tasks.py +0 -0
  36. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/client.py +0 -0
  37. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/datasets.py +0 -0
  38. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/endpoints.py +0 -0
  39. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/evals.py +0 -0
  40. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/example_stores.py +0 -0
  41. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/feedback_contexts.py +0 -0
  42. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/live.py +0 -0
  43. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/live_runtimes.py +0 -0
  44. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/memories.py +0 -0
  45. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/memory_banks.py +0 -0
  46. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/memory_revisions.py +0 -0
  47. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/model_garden.py +0 -0
  48. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/prompt_optimizer.py +0 -0
  49. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/prompts.py +0 -0
  50. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/rag.py +0 -0
  51. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/runtime_revisions.py +0 -0
  52. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/runtimes.py +0 -0
  53. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/sandbox_snapshots.py +0 -0
  54. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/sandbox_templates.py +0 -0
  55. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/sandboxes.py +0 -0
  56. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/serving_profiles.py +0 -0
  57. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/session_events.py +0 -0
  58. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/sessions.py +0 -0
  59. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/skill_revisions.py +0 -0
  60. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/skills.py +0 -0
  61. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/types/agent_engines.py +0 -0
  62. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/types/evals.py +0 -0
  63. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/types/prompt_optimizer.py +0 -0
  64. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/_genai/types/prompts.py +0 -0
  65. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/frameworks/__init__.py +0 -0
  66. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/frameworks/a2a.py +0 -0
  67. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/frameworks/ag2.py +0 -0
  68. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/frameworks/langchain.py +0 -0
  69. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/frameworks/langgraph.py +0 -0
  70. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/agentplatform/frameworks/llama_index.py +0 -0
  71. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/google_cloud_agentplatform.egg-info/SOURCES.txt +0 -0
  72. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/google_cloud_agentplatform.egg-info/dependency_links.txt +0 -0
  73. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/google_cloud_agentplatform.egg-info/top_level.txt +0 -0
  74. {google_cloud_agentplatform-2.8.0 → google_cloud_agentplatform-2.9.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-cloud-agentplatform
3
- Version: 2.8.0
3
+ Version: 2.9.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
@@ -61,7 +61,7 @@ Provides-Extra: evaluation
61
61
  Requires-Dist: pandas>=1.0.0; extra == "evaluation"
62
62
  Requires-Dist: tqdm>=4.23.0; extra == "evaluation"
63
63
  Requires-Dist: pyyaml; extra == "evaluation"
64
- Requires-Dist: litellm<1.107.0,>=1.106.5; python_version < "3.15" and extra == "evaluation"
64
+ Requires-Dist: litellm!=1.107.0,<1.110.0,>=1.106.5; python_version < "3.15" and extra == "evaluation"
65
65
  Requires-Dist: google-cloud-storage<4.0.0,>=1.32.0; extra == "evaluation"
66
66
  Provides-Extra: bigquery
67
67
  Requires-Dist: google-cloud-bigquery<4.0.0,>=1.15.0; extra == "bigquery"
@@ -1322,6 +1322,8 @@ def _upload_extra_packages(
1322
1322
  tar_fileobj = io.BytesIO()
1323
1323
  with tarfile.open(fileobj=tar_fileobj, mode="w|gz") as tar:
1324
1324
  for file in extra_packages:
1325
+ # Note: tar.add(file) preserves each path relative to the current
1326
+ # working directory in the archive (extracted into /code).
1325
1327
  tar.add(file)
1326
1328
  tar_fileobj.seek(0)
1327
1329
  blob = gcs_bucket.blob(f"{gcs_dir_name}/{_EXTRA_PACKAGES_FILE}")
@@ -1360,78 +1362,14 @@ def _validate_packages_or_raise(
1360
1362
  build_options: Optional[Dict[str, Sequence[str]]] = None,
1361
1363
  ) -> Sequence[str]:
1362
1364
  """Tries to validates the packages."""
1365
+ del build_options
1363
1366
  packages = packages or []
1364
- if build_options and _INSTALLATION_SUBDIR in build_options:
1365
- _validate_installation_scripts_or_raise(
1366
- script_paths=build_options[_INSTALLATION_SUBDIR],
1367
- packages=packages,
1368
- )
1369
1367
  for package in packages:
1370
1368
  if not os.path.exists(package):
1371
1369
  raise FileNotFoundError(f"Package specified but not found: {package=}")
1372
1370
  return packages
1373
1371
 
1374
1372
 
1375
- def _validate_installation_scripts_or_raise(
1376
- *,
1377
- script_paths: Sequence[str],
1378
- packages: Sequence[str],
1379
- ) -> None:
1380
- """Validates the installation scripts' path explicitly provided by the user.
1381
-
1382
- Args:
1383
- script_paths (Sequence[str]):
1384
- Required. The paths to the installation scripts.
1385
- packages (Sequence[str]):
1386
- Required. The user-provided packages.
1387
-
1388
- Raises:
1389
- ValueError: If a user-defined script is not under the expected
1390
- subdirectory, or not in `packages`, or if a package is
1391
- in the installation scripts subdirectory, but is not specified as an
1392
- installation script.
1393
- """
1394
- for script_path in script_paths:
1395
- if not script_path.startswith(_INSTALLATION_SUBDIR):
1396
- logger.warning(
1397
- f"User-defined installation script '{script_path}' is not in "
1398
- f"the expected '{_INSTALLATION_SUBDIR}' subdirectory. "
1399
- f"Ensure it is placed in '{_INSTALLATION_SUBDIR}' within your "
1400
- f"'extra_packages' or 'source_packages'."
1401
- )
1402
- raise ValueError(
1403
- f"Required installation script '{script_path}' "
1404
- f"is not under '{_INSTALLATION_SUBDIR}'"
1405
- )
1406
-
1407
- if script_path not in packages:
1408
- logger.warning(
1409
- f"User-defined installation script '{script_path}' is not in "
1410
- f"'extra_packages' or 'source_packages'. Ensure it is added to "
1411
- f"'extra_packages' or 'source_packages'."
1412
- )
1413
- raise ValueError(
1414
- f"User-defined installation script '{script_path}' "
1415
- f"does not exist in 'extra_packages' or 'source_packages'."
1416
- )
1417
-
1418
- for package in packages:
1419
- if package.startswith(_INSTALLATION_SUBDIR) and package not in script_paths:
1420
- logger.warning(
1421
- f"Package '{package}' is in the installation "
1422
- "scripts subdirectory, but is not specified as an installation "
1423
- "script in `build_options`. "
1424
- "Ensure it is added to installation_scripts for "
1425
- "automatic execution."
1426
- )
1427
- raise ValueError(
1428
- f"Package '{package}' is in the installation "
1429
- "scripts subdirectory, but is not specified as an installation "
1430
- "script in `build_options`."
1431
- )
1432
- return
1433
-
1434
-
1435
1373
  def _validate_staging_bucket_or_raise(*, staging_bucket: str) -> str:
1436
1374
  """Tries to validate the staging bucket."""
1437
1375
  if not staging_bucket:
@@ -1875,7 +1813,8 @@ def _wrap_a2a_operation(method_name: str, agent_card: str) -> Callable[..., list
1875
1813
  f"Bearer {self.api_client._api_client._credentials.token}"
1876
1814
  )
1877
1815
  },
1878
- timeout=(
1816
+ timeout=kwargs.pop("timeout", None)
1817
+ or (
1879
1818
  self.api_client._api_client._http_options.timeout / 1000.0
1880
1819
  if self.api_client._api_client._http_options.timeout
1881
1820
  else None
@@ -532,7 +532,7 @@ class FeedbackEntries(_api_module.BaseModule):
532
532
  Args:
533
533
  name (str): Required. Name of the Feedback Entry to update. Format:
534
534
  `projects/{project}/locations/{location}/reasoningEngines/{resource_id}/feedbackEntries/{feedback_entry_id}`.
535
- feedback_type (shared.FeedbackType): Optional. The type of feedback provided.
535
+ feedback_type (FeedbackType): Optional. The type of feedback provided.
536
536
  config (UpdateRuntimeFeedbackEntryConfig): Optional. The configuration for updating the Feedback Entry.
537
537
 
538
538
  Returns:
@@ -1245,7 +1245,7 @@ class AsyncFeedbackEntries(_api_module.BaseModule):
1245
1245
  Args:
1246
1246
  name (str): Required. Name of the Feedback Entry to update. Format:
1247
1247
  `projects/{project}/locations/{location}/reasoningEngines/{resource_id}/feedbackEntries/{feedback_entry_id}`.
1248
- feedback_type (shared.FeedbackType): Optional. The type of feedback provided.
1248
+ feedback_type (FeedbackType): Optional. The type of feedback provided.
1249
1249
  config (UpdateRuntimeFeedbackEntryConfig): Optional. The configuration for updating the Feedback Entry.
1250
1250
 
1251
1251
  Returns:
@@ -2050,6 +2050,9 @@ from .common import SandboxEnvironmentTemplateResourceRequirements
2050
2050
  from .common import SandboxEnvironmentTemplateResourceRequirementsDict
2051
2051
  from .common import SandboxEnvironmentTemplateResourceRequirementsOrDict
2052
2052
  from .common import SandboxEnvironmentTemplateState
2053
+ from .common import SandboxEnvironmentTemplateWarmPoolConfig
2054
+ from .common import SandboxEnvironmentTemplateWarmPoolConfigDict
2055
+ from .common import SandboxEnvironmentTemplateWarmPoolConfigOrDict
2053
2056
  from .common import SandboxState
2054
2057
  from .common import SavedQuery
2055
2058
  from .common import SavedQueryDict
@@ -2368,6 +2371,7 @@ from .common import UpdateServingProfileConfigOrDict
2368
2371
  from .common import UpdateSkillConfig
2369
2372
  from .common import UpdateSkillConfigDict
2370
2373
  from .common import UpdateSkillConfigOrDict
2374
+ from .common import UpdateStrategy
2371
2375
  from .common import UploadRagFileConfig
2372
2376
  from .common import UploadRagFileConfigDict
2373
2377
  from .common import UploadRagFileConfigOrDict
@@ -3619,6 +3623,9 @@ __all__ = [
3619
3623
  "SandboxEnvironmentTemplatePersistentDiskConfig",
3620
3624
  "SandboxEnvironmentTemplatePersistentDiskConfigDict",
3621
3625
  "SandboxEnvironmentTemplatePersistentDiskConfigOrDict",
3626
+ "SandboxEnvironmentTemplateWarmPoolConfig",
3627
+ "SandboxEnvironmentTemplateWarmPoolConfigDict",
3628
+ "SandboxEnvironmentTemplateWarmPoolConfigOrDict",
3622
3629
  "SandboxEnvironmentTemplate",
3623
3630
  "SandboxEnvironmentTemplateDict",
3624
3631
  "SandboxEnvironmentTemplateOrDict",
@@ -4526,6 +4533,7 @@ __all__ = [
4526
4533
  "DefaultContainerCategory",
4527
4534
  "PscAutomationState",
4528
4535
  "SandboxEnvironmentTemplateState",
4536
+ "UpdateStrategy",
4529
4537
  "PostSnapshotAction",
4530
4538
  "Framework",
4531
4539
  "SkillSource",
@@ -243,7 +243,7 @@ class State(_common.CaseInSensitiveEnum):
243
243
 
244
244
 
245
245
  class MemoryType(_common.CaseInSensitiveEnum):
246
- """The type of the memory."""
246
+ """Represents the type of the memory. If not set, the `NATURAL_LANGUAGE_COLLECTION` type is used. If `STRUCTURED_COLLECTION` or `STRUCTURED_PROFILE` is used, then `structured_data` must be provided."""
247
247
 
248
248
  MEMORY_TYPE_UNSPECIFIED = "MEMORY_TYPE_UNSPECIFIED"
249
249
  """Represents an unspecified memory type. This value should not be used."""
@@ -385,6 +385,17 @@ class SandboxEnvironmentTemplateState(_common.CaseInSensitiveEnum):
385
385
  """Sandbox has failed to provision."""
386
386
 
387
387
 
388
+ class UpdateStrategy(_common.CaseInSensitiveEnum):
389
+ """The strategy for updating warm pool instances when the template is updated."""
390
+
391
+ UPDATE_STRATEGY_UNSPECIFIED = "UPDATE_STRATEGY_UNSPECIFIED"
392
+ """Unspecified update strategy. Defaults to ON_REPLENISH."""
393
+ ON_REPLENISH = "ON_REPLENISH"
394
+ """Existing warm pool pods are left running and new pods use the updated template as the warm pool is replenished."""
395
+ RECREATE = "RECREATE"
396
+ """Existing warm pool pods are recreated immediately with the updated template."""
397
+
398
+
388
399
  class PostSnapshotAction(_common.CaseInSensitiveEnum):
389
400
  """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."""
390
401
 
@@ -419,7 +430,7 @@ class SkillSource(_common.CaseInSensitiveEnum):
419
430
 
420
431
 
421
432
  class SkillState(_common.CaseInSensitiveEnum):
422
- """State of the Skill."""
433
+ """Output only. The state of the Skill."""
423
434
 
424
435
  STATE_UNSPECIFIED = "STATE_UNSPECIFIED"
425
436
  """The state of the Skill is unspecified."""
@@ -490,14 +501,14 @@ class QuotaState(_common.CaseInSensitiveEnum):
490
501
 
491
502
 
492
503
  class FeedbackType(_common.CaseInSensitiveEnum):
493
- """The type of the feedback."""
504
+ """The coarse-grained type of feedback provided by the user. Must be set to a value other than `FEEDBACK_TYPE_UNSPECIFIED`."""
494
505
 
495
506
  FEEDBACK_TYPE_UNSPECIFIED = "FEEDBACK_TYPE_UNSPECIFIED"
496
- """Default value."""
507
+ """This is the default value meaning the type has not been set."""
497
508
  THUMBS_UP = "THUMBS_UP"
498
- """Indicates positive feedback (e.g., a "thumbs up")."""
509
+ """Indicates positive feedback."""
499
510
  THUMBS_DOWN = "THUMBS_DOWN"
500
- """Indicates a thumbs down feedback (e.g., a "thumbs down")."""
511
+ """Indicates negative feedback."""
501
512
 
502
513
 
503
514
  class Encoding(_common.CaseInSensitiveEnum):
@@ -664,13 +675,13 @@ class ServingProfileScope(_common.CaseInSensitiveEnum):
664
675
  """The specific API this ServingProfile applies to."""
665
676
 
666
677
  SERVING_PROFILE_SCOPE_UNSPECIFIED = "SERVING_PROFILE_SCOPE_UNSPECIFIED"
667
- """Unspecified scope."""
678
+ """Default value. This value is unused. When users create a ServingProfile, they must choose a scope."""
668
679
  GEMINI_LIVE = "GEMINI_LIVE"
669
- """Scope for Gemini Live."""
680
+ """The scope for Gemini Live."""
670
681
  INTERACTIONS_API = "INTERACTIONS_API"
671
- """Scope for Interactions API."""
682
+ """The scope for Interactions API."""
672
683
  RESPONSE_API = "RESPONSE_API"
673
- """Scope for Response API."""
684
+ """The scope for Response API."""
674
685
 
675
686
 
676
687
  class EvaluationExperimentMergeStrategy(_common.CaseInSensitiveEnum):
@@ -18532,6 +18543,35 @@ SandboxEnvironmentTemplatePersistentDiskConfigOrDict = Union[
18532
18543
  ]
18533
18544
 
18534
18545
 
18546
+ class SandboxEnvironmentTemplateWarmPoolConfig(_common.BaseModel):
18547
+ """Configuration for a warm pool of sandbox instances."""
18548
+
18549
+ target_instance_count: Optional[int] = Field(
18550
+ default=None,
18551
+ description="""Optional. The target number of pre-warmed instances to maintain.""",
18552
+ )
18553
+ update_strategy: Optional[UpdateStrategy] = Field(
18554
+ default=None,
18555
+ description="""Optional. The strategy for updating warm pool instances when the template is updated.""",
18556
+ )
18557
+
18558
+
18559
+ class SandboxEnvironmentTemplateWarmPoolConfigDict(TypedDict, total=False):
18560
+ """Configuration for a warm pool of sandbox instances."""
18561
+
18562
+ target_instance_count: Optional[int]
18563
+ """Optional. The target number of pre-warmed instances to maintain."""
18564
+
18565
+ update_strategy: Optional[UpdateStrategy]
18566
+ """Optional. The strategy for updating warm pool instances when the template is updated."""
18567
+
18568
+
18569
+ SandboxEnvironmentTemplateWarmPoolConfigOrDict = Union[
18570
+ SandboxEnvironmentTemplateWarmPoolConfig,
18571
+ SandboxEnvironmentTemplateWarmPoolConfigDict,
18572
+ ]
18573
+
18574
+
18535
18575
  class SandboxEnvironmentTemplate(_common.BaseModel):
18536
18576
  """A sandbox environment template."""
18537
18577
 
@@ -18587,6 +18627,10 @@ class SandboxEnvironmentTemplate(_common.BaseModel):
18587
18627
  description="""Optional. Configuration for attaching a persistent disk (PD) to each SandboxEnvironment created from this template. When unset (or when `enabled` is `false`), sandboxes created from this template are not backed by a persistent disk and rely on ephemeral storage only. See PersistentDiskConfig for details.""",
18588
18628
  )
18589
18629
  )
18630
+ warm_pool_config: Optional[SandboxEnvironmentTemplateWarmPoolConfig] = Field(
18631
+ default=None,
18632
+ description="""Optional. The configuration for the warm pool of this template.""",
18633
+ )
18590
18634
 
18591
18635
 
18592
18636
  class SandboxEnvironmentTemplateDict(TypedDict, total=False):
@@ -18629,6 +18673,9 @@ class SandboxEnvironmentTemplateDict(TypedDict, total=False):
18629
18673
  persistent_disk_config: Optional[SandboxEnvironmentTemplatePersistentDiskConfigDict]
18630
18674
  """Optional. Configuration for attaching a persistent disk (PD) to each SandboxEnvironment created from this template. When unset (or when `enabled` is `false`), sandboxes created from this template are not backed by a persistent disk and rely on ephemeral storage only. See PersistentDiskConfig for details."""
18631
18675
 
18676
+ warm_pool_config: Optional[SandboxEnvironmentTemplateWarmPoolConfigDict]
18677
+ """Optional. The configuration for the warm pool of this template."""
18678
+
18632
18679
 
18633
18680
  SandboxEnvironmentTemplateOrDict = Union[
18634
18681
  SandboxEnvironmentTemplate, SandboxEnvironmentTemplateDict
@@ -26080,6 +26127,10 @@ class DeployRequestDeployConfig(_common.BaseModel):
26080
26127
  default=None,
26081
26128
  description="""Optional. System labels for Model Garden deployments. These labels are managed by Google and for tracking purposes only.""",
26082
26129
  )
26130
+ service_account: Optional[str] = Field(
26131
+ default=None,
26132
+ description="""Optional. The service account that the container of the deployed model runs as. Specify the email address of the service account. If not specified, the container runs as a service account that has no access to the resource project. Users deploying the model must have the `iam.serviceAccounts.actAs` permission on this service account.""",
26133
+ )
26083
26134
 
26084
26135
 
26085
26136
  class DeployRequestDeployConfigDict(TypedDict, total=False):
@@ -26094,6 +26145,9 @@ class DeployRequestDeployConfigDict(TypedDict, total=False):
26094
26145
  system_labels: Optional[dict[str, str]]
26095
26146
  """Optional. System labels for Model Garden deployments. These labels are managed by Google and for tracking purposes only."""
26096
26147
 
26148
+ service_account: Optional[str]
26149
+ """Optional. The service account that the container of the deployed model runs as. Specify the email address of the service account. If not specified, the container runs as a service account that has no access to the resource project. Users deploying the model must have the `iam.serviceAccounts.actAs` permission on this service account."""
26150
+
26097
26151
 
26098
26152
  DeployRequestDeployConfigOrDict = Union[
26099
26153
  DeployRequestDeployConfig, DeployRequestDeployConfigDict
@@ -1336,8 +1336,12 @@ class AdkApp:
1336
1336
  """Streams responses asynchronously from the ADK application.
1337
1337
 
1338
1338
  Args:
1339
- message (str):
1340
- Required. The message to stream responses for.
1339
+ message (Union[str, Dict[str, Any]]):
1340
+ Required. The message to stream responses for. Either a text
1341
+ string or a dictionary representing a
1342
+ `google.genai.types.Content` object (for example,
1343
+ `content.model_dump(exclude_none=True, mode="json")` for
1344
+ multimodal inputs).
1341
1345
  user_id (str):
1342
1346
  Required. The ID of the user.
1343
1347
  session_id (str):
@@ -1362,7 +1366,7 @@ class AdkApp:
1362
1366
 
1363
1367
  Raises:
1364
1368
  TypeError: If message is not a string or a dictionary representing
1365
- a Content object.
1369
+ a Content object.
1366
1370
  ValueError: If both session_id and session_events are specified.
1367
1371
  """
1368
1372
  from agentplatform._genai import _runtimes_utils
@@ -14,4 +14,4 @@
14
14
  #
15
15
  """Version file for agentplatform."""
16
16
 
17
- __version__ = "2.8.0"
17
+ __version__ = "2.9.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-cloud-agentplatform
3
- Version: 2.8.0
3
+ Version: 2.9.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
@@ -61,7 +61,7 @@ Provides-Extra: evaluation
61
61
  Requires-Dist: pandas>=1.0.0; extra == "evaluation"
62
62
  Requires-Dist: tqdm>=4.23.0; extra == "evaluation"
63
63
  Requires-Dist: pyyaml; extra == "evaluation"
64
- Requires-Dist: litellm<1.107.0,>=1.106.5; python_version < "3.15" and extra == "evaluation"
64
+ Requires-Dist: litellm!=1.107.0,<1.110.0,>=1.106.5; python_version < "3.15" and extra == "evaluation"
65
65
  Requires-Dist: google-cloud-storage<4.0.0,>=1.32.0; extra == "evaluation"
66
66
  Provides-Extra: bigquery
67
67
  Requires-Dist: google-cloud-bigquery<4.0.0,>=1.15.0; extra == "bigquery"
@@ -46,7 +46,7 @@ pyyaml
46
46
  google-cloud-storage<4.0.0,>=1.32.0
47
47
 
48
48
  [evaluation:python_version < "3.15"]
49
- litellm<1.107.0,>=1.106.5
49
+ litellm!=1.107.0,<1.110.0,>=1.106.5
50
50
 
51
51
  [langchain]
52
52
  google-cloud-agentplatform[agent_engines]
@@ -80,9 +80,9 @@ evaluation = [
80
80
  "pandas >= 1.0.0",
81
81
  "tqdm >= 4.23.0",
82
82
  "pyyaml",
83
- # Lower bound >=1.106.5 includes security advisory patches; litellm
84
- # requires Python <3.15.
85
- "litellm >= 1.106.5, < 1.107.0; python_version < '3.15'",
83
+ # Lower bound >=1.106.5 includes security advisory patches; 1.107.0 was
84
+ # compromised; litellm requires Python <3.15.
85
+ "litellm >= 1.106.5, != 1.107.0, < 1.110.0; python_version < '3.15'",
86
86
  "google-cloud-storage >= 1.32.0, < 4.0.0",
87
87
  ]
88
88
  bigquery = [