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.
- agentplatform/__init__.py +72 -0
- agentplatform/_genai/__init__.py +43 -0
- agentplatform/_genai/_agent_engines_utils.py +2341 -0
- agentplatform/_genai/_bigquery_utils.py +49 -0
- agentplatform/_genai/_datasets_utils.py +344 -0
- agentplatform/_genai/_evals_builtin_tools.py +209 -0
- agentplatform/_genai/_evals_common.py +4268 -0
- agentplatform/_genai/_evals_constant.py +122 -0
- agentplatform/_genai/_evals_data_converters.py +926 -0
- agentplatform/_genai/_evals_metric_handlers.py +1783 -0
- agentplatform/_genai/_evals_metric_loaders.py +401 -0
- agentplatform/_genai/_evals_utils.py +1043 -0
- agentplatform/_genai/_evals_visualization.py +2070 -0
- agentplatform/_genai/_gcs_utils.py +262 -0
- agentplatform/_genai/_logging_utils.py +47 -0
- agentplatform/_genai/_memory_bank_utils.py +206 -0
- agentplatform/_genai/_observability_data_converter.py +186 -0
- agentplatform/_genai/_operations_utils.py +94 -0
- agentplatform/_genai/_prompt_management_utils.py +147 -0
- agentplatform/_genai/_prompt_optimizer_utils.py +215 -0
- agentplatform/_genai/_skills_utils.py +69 -0
- agentplatform/_genai/_transformers.py +628 -0
- agentplatform/_genai/a2a_task_events.py +509 -0
- agentplatform/_genai/a2a_tasks.py +861 -0
- agentplatform/_genai/agent_engines.py +3931 -0
- agentplatform/_genai/client.py +519 -0
- agentplatform/_genai/datasets.py +3045 -0
- agentplatform/_genai/endpoints.py +1149 -0
- agentplatform/_genai/evals.py +6883 -0
- agentplatform/_genai/example_stores.py +1445 -0
- agentplatform/_genai/feedback_contexts.py +700 -0
- agentplatform/_genai/feedback_entries.py +1644 -0
- agentplatform/_genai/live.py +64 -0
- agentplatform/_genai/live_agent_engines.py +179 -0
- agentplatform/_genai/memories.py +2962 -0
- agentplatform/_genai/memory_banks.py +1927 -0
- agentplatform/_genai/memory_revisions.py +465 -0
- agentplatform/_genai/model_garden.py +2638 -0
- agentplatform/_genai/prompt_optimizer.py +995 -0
- agentplatform/_genai/prompts.py +4515 -0
- agentplatform/_genai/rag.py +4961 -0
- agentplatform/_genai/runtime_revisions.py +1257 -0
- agentplatform/_genai/runtimes.py +78 -0
- agentplatform/_genai/sandbox_snapshots.py +1015 -0
- agentplatform/_genai/sandbox_templates.py +1088 -0
- agentplatform/_genai/sandboxes.py +1604 -0
- agentplatform/_genai/session_events.py +543 -0
- agentplatform/_genai/sessions.py +1449 -0
- agentplatform/_genai/skill_revisions.py +377 -0
- agentplatform/_genai/skills.py +1708 -0
- agentplatform/_genai/types/__init__.py +4695 -0
- agentplatform/_genai/types/agent_engines.py +16 -0
- agentplatform/_genai/types/common.py +32784 -0
- agentplatform/_genai/types/evals.py +1031 -0
- agentplatform/_genai/types/prompt_optimizer.py +107 -0
- agentplatform/_genai/types/prompts.py +107 -0
- agentplatform/version.py +17 -0
- google_cloud_agentplatform-1.165.1.dev0.dist-info/METADATA +79 -0
- google_cloud_agentplatform-1.165.1.dev0.dist-info/RECORD +62 -0
- google_cloud_agentplatform-1.165.1.dev0.dist-info/WHEEL +5 -0
- google_cloud_agentplatform-1.165.1.dev0.dist-info/licenses/LICENSE +202 -0
- google_cloud_agentplatform-1.165.1.dev0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Copyright 2026 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
|
+
"""The agentplatform module."""
|
|
16
|
+
|
|
17
|
+
import importlib
|
|
18
|
+
import sys
|
|
19
|
+
|
|
20
|
+
try:
|
|
21
|
+
from google.cloud.aiplatform import init
|
|
22
|
+
except ImportError:
|
|
23
|
+
init = None
|
|
24
|
+
|
|
25
|
+
try:
|
|
26
|
+
from google.cloud.aiplatform import version as aiplatform_version
|
|
27
|
+
|
|
28
|
+
__version__ = aiplatform_version.__version__
|
|
29
|
+
except ImportError:
|
|
30
|
+
from .version import __version__ # noqa: F401
|
|
31
|
+
|
|
32
|
+
_genai_client = None
|
|
33
|
+
_genai_types = None
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def __getattr__(name): # type: ignore[no-untyped-def]
|
|
37
|
+
# Lazy importing the preview submodule
|
|
38
|
+
# See https://peps.python.org/pep-0562/
|
|
39
|
+
if name == "preview":
|
|
40
|
+
# We need to import carefully to avoid `RecursionError`.
|
|
41
|
+
# This won't work since it causes `RecursionError`:
|
|
42
|
+
# `from agentplatform import preview`
|
|
43
|
+
# This won't work due to Copybara lacking a transform:
|
|
44
|
+
# `import google.cloud.aiplatform.agentplatform.preview as`
|
|
45
|
+
# `agentplatform_preview`
|
|
46
|
+
return importlib.import_module(".preview", __name__)
|
|
47
|
+
if name == "Client":
|
|
48
|
+
global _genai_client
|
|
49
|
+
if _genai_client is None:
|
|
50
|
+
_genai_client = importlib.import_module("._genai.client", __name__)
|
|
51
|
+
return getattr(_genai_client, name)
|
|
52
|
+
|
|
53
|
+
if name == "types":
|
|
54
|
+
global _genai_types
|
|
55
|
+
if _genai_types is None:
|
|
56
|
+
_genai_types = importlib.import_module("._genai.types", __name__)
|
|
57
|
+
if "vertexai.types" not in sys.modules:
|
|
58
|
+
sys.modules["vertexai.types"] = _genai_types
|
|
59
|
+
return _genai_types
|
|
60
|
+
|
|
61
|
+
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
__all__ = [
|
|
65
|
+
"init",
|
|
66
|
+
"preview",
|
|
67
|
+
"Client",
|
|
68
|
+
"types",
|
|
69
|
+
]
|
|
70
|
+
|
|
71
|
+
if init is None:
|
|
72
|
+
__all__.remove("init")
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Copyright 2026 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
|
+
"""The agentplatform module."""
|
|
16
|
+
|
|
17
|
+
import importlib
|
|
18
|
+
|
|
19
|
+
from .client import Client
|
|
20
|
+
|
|
21
|
+
_evals = None
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def __getattr__(name): # type: ignore[no-untyped-def]
|
|
25
|
+
if name == "evals":
|
|
26
|
+
global _evals
|
|
27
|
+
if _evals is None:
|
|
28
|
+
try:
|
|
29
|
+
_evals = importlib.import_module(".evals", __package__)
|
|
30
|
+
except ImportError as e:
|
|
31
|
+
raise ImportError(
|
|
32
|
+
"The 'evals' module requires additional dependencies. "
|
|
33
|
+
"Please install them using pip install "
|
|
34
|
+
"google-cloud-aiplatform[evaluation]"
|
|
35
|
+
) from e
|
|
36
|
+
return _evals
|
|
37
|
+
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
__all__ = [
|
|
41
|
+
"Client",
|
|
42
|
+
"evals",
|
|
43
|
+
]
|