google-cloud-agentplatform 1.165.1.dev0__py3-none-any.whl

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 (62) hide show
  1. agentplatform/__init__.py +72 -0
  2. agentplatform/_genai/__init__.py +43 -0
  3. agentplatform/_genai/_agent_engines_utils.py +2341 -0
  4. agentplatform/_genai/_bigquery_utils.py +49 -0
  5. agentplatform/_genai/_datasets_utils.py +344 -0
  6. agentplatform/_genai/_evals_builtin_tools.py +209 -0
  7. agentplatform/_genai/_evals_common.py +4268 -0
  8. agentplatform/_genai/_evals_constant.py +122 -0
  9. agentplatform/_genai/_evals_data_converters.py +926 -0
  10. agentplatform/_genai/_evals_metric_handlers.py +1783 -0
  11. agentplatform/_genai/_evals_metric_loaders.py +401 -0
  12. agentplatform/_genai/_evals_utils.py +1043 -0
  13. agentplatform/_genai/_evals_visualization.py +2070 -0
  14. agentplatform/_genai/_gcs_utils.py +262 -0
  15. agentplatform/_genai/_logging_utils.py +47 -0
  16. agentplatform/_genai/_memory_bank_utils.py +206 -0
  17. agentplatform/_genai/_observability_data_converter.py +186 -0
  18. agentplatform/_genai/_operations_utils.py +94 -0
  19. agentplatform/_genai/_prompt_management_utils.py +147 -0
  20. agentplatform/_genai/_prompt_optimizer_utils.py +215 -0
  21. agentplatform/_genai/_skills_utils.py +69 -0
  22. agentplatform/_genai/_transformers.py +628 -0
  23. agentplatform/_genai/a2a_task_events.py +509 -0
  24. agentplatform/_genai/a2a_tasks.py +861 -0
  25. agentplatform/_genai/agent_engines.py +3931 -0
  26. agentplatform/_genai/client.py +519 -0
  27. agentplatform/_genai/datasets.py +3045 -0
  28. agentplatform/_genai/endpoints.py +1149 -0
  29. agentplatform/_genai/evals.py +6883 -0
  30. agentplatform/_genai/example_stores.py +1445 -0
  31. agentplatform/_genai/feedback_contexts.py +700 -0
  32. agentplatform/_genai/feedback_entries.py +1644 -0
  33. agentplatform/_genai/live.py +64 -0
  34. agentplatform/_genai/live_agent_engines.py +179 -0
  35. agentplatform/_genai/memories.py +2962 -0
  36. agentplatform/_genai/memory_banks.py +1927 -0
  37. agentplatform/_genai/memory_revisions.py +465 -0
  38. agentplatform/_genai/model_garden.py +2638 -0
  39. agentplatform/_genai/prompt_optimizer.py +995 -0
  40. agentplatform/_genai/prompts.py +4515 -0
  41. agentplatform/_genai/rag.py +4961 -0
  42. agentplatform/_genai/runtime_revisions.py +1257 -0
  43. agentplatform/_genai/runtimes.py +78 -0
  44. agentplatform/_genai/sandbox_snapshots.py +1015 -0
  45. agentplatform/_genai/sandbox_templates.py +1088 -0
  46. agentplatform/_genai/sandboxes.py +1604 -0
  47. agentplatform/_genai/session_events.py +543 -0
  48. agentplatform/_genai/sessions.py +1449 -0
  49. agentplatform/_genai/skill_revisions.py +377 -0
  50. agentplatform/_genai/skills.py +1708 -0
  51. agentplatform/_genai/types/__init__.py +4695 -0
  52. agentplatform/_genai/types/agent_engines.py +16 -0
  53. agentplatform/_genai/types/common.py +32784 -0
  54. agentplatform/_genai/types/evals.py +1031 -0
  55. agentplatform/_genai/types/prompt_optimizer.py +107 -0
  56. agentplatform/_genai/types/prompts.py +107 -0
  57. agentplatform/version.py +17 -0
  58. google_cloud_agentplatform-1.165.1.dev0.dist-info/METADATA +79 -0
  59. google_cloud_agentplatform-1.165.1.dev0.dist-info/RECORD +62 -0
  60. google_cloud_agentplatform-1.165.1.dev0.dist-info/WHEEL +5 -0
  61. google_cloud_agentplatform-1.165.1.dev0.dist-info/licenses/LICENSE +202 -0
  62. google_cloud_agentplatform-1.165.1.dev0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,78 @@
1
+ # Copyright 2025 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+
16
+ # Handwritten placeholder code for the runtimes.py file.
17
+ # Should be replaced by the generated file.
18
+
19
+ import importlib
20
+ import logging
21
+ import typing
22
+
23
+ from google.genai import _api_module
24
+
25
+
26
+ if typing.TYPE_CHECKING:
27
+ from . import runtime_revisions as runtime_revisions_module
28
+
29
+ _ = runtime_revisions_module
30
+
31
+
32
+ logger = logging.getLogger("agentplatform_genai.runtimes")
33
+
34
+ logger.setLevel(logging.INFO)
35
+
36
+
37
+ class Runtimes(_api_module.BaseModule):
38
+
39
+ _revisions = None
40
+
41
+ @property
42
+ def revisions(self) -> "runtime_revisions_module.RuntimeRevisions":
43
+ if self._revisions is None:
44
+ try:
45
+ # We need to lazy load the revisions module to handle the
46
+ # possibility of ImportError when dependencies are not installed.
47
+ self._revisions = importlib.import_module(
48
+ ".runtime_revisions", __package__
49
+ )
50
+ except ImportError as e:
51
+ raise ImportError(
52
+ "The 'agent_engines.runtimes.revisions' module requires "
53
+ "additional packages. Please install them using pip install "
54
+ "google-cloud-aiplatform[agent_engines]"
55
+ ) from e
56
+ return self._revisions.RuntimeRevisions(self._api_client) # type: ignore[no-any-return]
57
+
58
+
59
+ class AsyncRuntimes(_api_module.BaseModule):
60
+
61
+ _revisions = None
62
+
63
+ @property
64
+ def revisions(self) -> "runtime_revisions_module.AsyncRuntimeRevisions":
65
+ if self._revisions is None:
66
+ try:
67
+ # We need to lazy load the revisions module to handle the
68
+ # possibility of ImportError when dependencies are not installed.
69
+ self._revisions = importlib.import_module(
70
+ ".runtime_revisions", __package__
71
+ )
72
+ except ImportError as e:
73
+ raise ImportError(
74
+ "The 'agent_engines.runtimes.revisions' module requires "
75
+ "additional packages. Please install them using pip install "
76
+ "google-cloud-aiplatform[agent_engines]"
77
+ ) from e
78
+ return self._revisions.AsyncRuntimeRevisions(self._api_client) # type: ignore[no-any-return]