google-cloud-agentplatform 1.165.1.dev1__tar.gz → 2.0.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.
- {google_cloud_agentplatform-1.165.1.dev1/google_cloud_agentplatform.egg-info → google_cloud_agentplatform-2.0.0}/PKG-INFO +19 -5
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/rag.py +42 -42
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/sandboxes.py +436 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/types/__init__.py +23 -7
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/types/common.py +284 -164
- google_cloud_agentplatform-2.0.0/agentplatform/frameworks/__init__.py +39 -0
- google_cloud_agentplatform-2.0.0/agentplatform/frameworks/a2a.py +594 -0
- google_cloud_agentplatform-2.0.0/agentplatform/frameworks/adk.py +2130 -0
- google_cloud_agentplatform-2.0.0/agentplatform/frameworks/ag2.py +508 -0
- google_cloud_agentplatform-2.0.0/agentplatform/frameworks/langchain.py +725 -0
- google_cloud_agentplatform-2.0.0/agentplatform/frameworks/langgraph.py +723 -0
- google_cloud_agentplatform-2.0.0/agentplatform/frameworks/llama_index.py +579 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/version.py +1 -1
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0/google_cloud_agentplatform.egg-info}/PKG-INFO +19 -5
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/google_cloud_agentplatform.egg-info/SOURCES.txt +7 -0
- google_cloud_agentplatform-2.0.0/google_cloud_agentplatform.egg-info/requires.txt +70 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/pyproject.toml +25 -6
- google_cloud_agentplatform-1.165.1.dev1/google_cloud_agentplatform.egg-info/requires.txt +0 -51
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/LICENSE +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/README.md +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/__init__.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/__init__.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_bigquery_utils.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_datasets_utils.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_evals_builtin_tools.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_evals_common.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_evals_constant.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_evals_data_converters.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_evals_metric_handlers.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_evals_metric_loaders.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_evals_utils.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_evals_visualization.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_gcs_utils.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_logging_utils.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_memory_bank_utils.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_observability_data_converter.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_operations_utils.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_prompt_management_utils.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_prompt_optimizer_utils.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_runtimes_utils.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_skills_utils.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/_transformers.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/a2a_task_events.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/a2a_tasks.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/client.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/datasets.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/endpoints.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/evals.py +21 -21
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/example_stores.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/feedback_contexts.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/feedback_entries.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/live.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/live_runtimes.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/memories.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/memory_banks.py +7 -7
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/memory_revisions.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/model_garden.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/prompt_optimizer.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/prompts.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/runtime_revisions.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/runtimes.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/sandbox_snapshots.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/sandbox_templates.py +7 -7
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/session_events.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/sessions.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/skill_revisions.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/skills.py +7 -7
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/types/agent_engines.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/types/evals.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/types/prompt_optimizer.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/agentplatform/_genai/types/prompts.py +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/google_cloud_agentplatform.egg-info/dependency_links.txt +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/google_cloud_agentplatform.egg-info/top_level.txt +0 -0
- {google_cloud_agentplatform-1.165.1.dev1 → google_cloud_agentplatform-2.0.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: google-cloud-agentplatform
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.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
|
|
@@ -25,30 +25,44 @@ Requires-Dist: pydantic<3
|
|
|
25
25
|
Requires-Dist: typing_extensions
|
|
26
26
|
Requires-Dist: google-genai
|
|
27
27
|
Provides-Extra: agent-engines
|
|
28
|
+
Requires-Dist: packaging>=24.0; extra == "agent-engines"
|
|
28
29
|
Requires-Dist: cloudpickle<4.0,>=3.0; extra == "agent-engines"
|
|
29
30
|
Requires-Dist: google-cloud-storage<4.0.0,>=1.32.0; extra == "agent-engines"
|
|
31
|
+
Requires-Dist: opentelemetry-sdk<2; extra == "agent-engines"
|
|
32
|
+
Requires-Dist: opentelemetry-exporter-gcp-logging<2.0.0,>=1.11.0a0; extra == "agent-engines"
|
|
33
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-http<2; extra == "agent-engines"
|
|
34
|
+
Requires-Dist: opentelemetry-instrumentation-google-genai<1.0.0,>=0.3b0; extra == "agent-engines"
|
|
35
|
+
Requires-Dist: pydantic<3,>=2.11.1; extra == "agent-engines"
|
|
36
|
+
Provides-Extra: a2a
|
|
37
|
+
Requires-Dist: google-cloud-agentplatform[agent_engines]; extra == "a2a"
|
|
38
|
+
Requires-Dist: a2a-sdk[http-server]>=1.0.0; extra == "a2a"
|
|
30
39
|
Provides-Extra: adk
|
|
31
40
|
Requires-Dist: google-cloud-agentplatform[agent_engines]; extra == "adk"
|
|
32
|
-
Requires-Dist: google-adk<3.0.0,>=1.
|
|
41
|
+
Requires-Dist: google-adk<3.0.0,>=1.27.0; extra == "adk"
|
|
33
42
|
Requires-Dist: aiohttp; extra == "adk"
|
|
34
43
|
Provides-Extra: langchain
|
|
35
44
|
Requires-Dist: google-cloud-agentplatform[agent_engines]; extra == "langchain"
|
|
36
45
|
Requires-Dist: langchain<2.0.0,>=1.0.0; extra == "langchain"
|
|
46
|
+
Requires-Dist: langchain-classic; extra == "langchain"
|
|
37
47
|
Requires-Dist: langchain-core<2.0.0,>=1.0.0; extra == "langchain"
|
|
38
|
-
Requires-Dist: langchain-google-genai
|
|
48
|
+
Requires-Dist: langchain-google-genai<4.2.3,>=4.0.0; extra == "langchain"
|
|
39
49
|
Requires-Dist: langgraph<2.0.0,>=1.0.0; extra == "langchain"
|
|
50
|
+
Requires-Dist: openinference-instrumentation-langchain<0.2,>=0.1.19; extra == "langchain"
|
|
40
51
|
Provides-Extra: ag2
|
|
41
52
|
Requires-Dist: google-cloud-agentplatform[agent_engines]; extra == "ag2"
|
|
42
53
|
Requires-Dist: autogen[gemini]<1,>=0.14.1; extra == "ag2"
|
|
54
|
+
Requires-Dist: openinference-instrumentation-autogen<0.2,>=0.1.6; extra == "ag2"
|
|
43
55
|
Provides-Extra: llama-index
|
|
44
56
|
Requires-Dist: google-cloud-agentplatform[agent_engines]; extra == "llama-index"
|
|
45
57
|
Requires-Dist: llama-index; extra == "llama-index"
|
|
46
58
|
Requires-Dist: llama-index-llms-google-genai; extra == "llama-index"
|
|
59
|
+
Requires-Dist: openinference-instrumentation-llama-index<4.0,>=3.0; extra == "llama-index"
|
|
47
60
|
Provides-Extra: evaluation
|
|
48
61
|
Requires-Dist: pandas>=1.0.0; extra == "evaluation"
|
|
49
62
|
Requires-Dist: tqdm>=4.23.0; extra == "evaluation"
|
|
50
63
|
Requires-Dist: pyyaml; extra == "evaluation"
|
|
51
|
-
Requires-Dist: litellm<1.
|
|
64
|
+
Requires-Dist: litellm<1.86.0,>=1.83.7; python_version < "3.14" and extra == "evaluation"
|
|
65
|
+
Requires-Dist: litellm<1.97.0,>=1.93.0; python_version >= "3.14" and extra == "evaluation"
|
|
52
66
|
Requires-Dist: google-cloud-storage<4.0.0,>=1.32.0; extra == "evaluation"
|
|
53
67
|
Provides-Extra: bigquery
|
|
54
68
|
Requires-Dist: google-cloud-bigquery<4.0.0,>=1.15.0; extra == "bigquery"
|
|
@@ -57,7 +71,7 @@ Requires-Dist: pandas>=1.0.0; extra == "bigquery"
|
|
|
57
71
|
Provides-Extra: live
|
|
58
72
|
Requires-Dist: websockets; extra == "live"
|
|
59
73
|
Provides-Extra: all
|
|
60
|
-
Requires-Dist: google-cloud-agentplatform[adk,ag2,agent_engines,bigquery,evaluation,langchain,live,llama_index]; extra == "all"
|
|
74
|
+
Requires-Dist: google-cloud-agentplatform[a2a,adk,ag2,agent_engines,bigquery,evaluation,langchain,live,llama_index]; extra == "all"
|
|
61
75
|
Dynamic: license-file
|
|
62
76
|
|
|
63
77
|
# Google Cloud Agent Platform
|
|
@@ -116,12 +116,12 @@ def _DeleteRagCorpusRequestParameters_to_vertex(
|
|
|
116
116
|
parent_object: Optional[dict[str, Any]] = None,
|
|
117
117
|
) -> dict[str, Any]:
|
|
118
118
|
to_object: dict[str, Any] = {}
|
|
119
|
-
if getv(from_object, ["config"]) is not None:
|
|
120
|
-
setv(to_object, ["config"], getv(from_object, ["config"]))
|
|
121
|
-
|
|
122
119
|
if getv(from_object, ["name"]) is not None:
|
|
123
120
|
setv(to_object, ["_url", "name"], getv(from_object, ["name"]))
|
|
124
121
|
|
|
122
|
+
if getv(from_object, ["config"]) is not None:
|
|
123
|
+
setv(to_object, ["config"], getv(from_object, ["config"]))
|
|
124
|
+
|
|
125
125
|
return to_object
|
|
126
126
|
|
|
127
127
|
|
|
@@ -130,12 +130,12 @@ def _DeleteRagFileRequestParameters_to_vertex(
|
|
|
130
130
|
parent_object: Optional[dict[str, Any]] = None,
|
|
131
131
|
) -> dict[str, Any]:
|
|
132
132
|
to_object: dict[str, Any] = {}
|
|
133
|
-
if getv(from_object, ["config"]) is not None:
|
|
134
|
-
setv(to_object, ["config"], getv(from_object, ["config"]))
|
|
135
|
-
|
|
136
133
|
if getv(from_object, ["name"]) is not None:
|
|
137
134
|
setv(to_object, ["_url", "name"], getv(from_object, ["name"]))
|
|
138
135
|
|
|
136
|
+
if getv(from_object, ["config"]) is not None:
|
|
137
|
+
setv(to_object, ["config"], getv(from_object, ["config"]))
|
|
138
|
+
|
|
139
139
|
return to_object
|
|
140
140
|
|
|
141
141
|
|
|
@@ -194,12 +194,12 @@ def _GetRagCorpusRequestParameters_to_vertex(
|
|
|
194
194
|
parent_object: Optional[dict[str, Any]] = None,
|
|
195
195
|
) -> dict[str, Any]:
|
|
196
196
|
to_object: dict[str, Any] = {}
|
|
197
|
-
if getv(from_object, ["config"]) is not None:
|
|
198
|
-
setv(to_object, ["config"], getv(from_object, ["config"]))
|
|
199
|
-
|
|
200
197
|
if getv(from_object, ["name"]) is not None:
|
|
201
198
|
setv(to_object, ["_url", "name"], getv(from_object, ["name"]))
|
|
202
199
|
|
|
200
|
+
if getv(from_object, ["config"]) is not None:
|
|
201
|
+
setv(to_object, ["config"], getv(from_object, ["config"]))
|
|
202
|
+
|
|
203
203
|
return to_object
|
|
204
204
|
|
|
205
205
|
|
|
@@ -208,12 +208,12 @@ def _GetRagFileRequestParameters_to_vertex(
|
|
|
208
208
|
parent_object: Optional[dict[str, Any]] = None,
|
|
209
209
|
) -> dict[str, Any]:
|
|
210
210
|
to_object: dict[str, Any] = {}
|
|
211
|
-
if getv(from_object, ["config"]) is not None:
|
|
212
|
-
setv(to_object, ["config"], getv(from_object, ["config"]))
|
|
213
|
-
|
|
214
211
|
if getv(from_object, ["name"]) is not None:
|
|
215
212
|
setv(to_object, ["_url", "name"], getv(from_object, ["name"]))
|
|
216
213
|
|
|
214
|
+
if getv(from_object, ["config"]) is not None:
|
|
215
|
+
setv(to_object, ["config"], getv(from_object, ["config"]))
|
|
216
|
+
|
|
217
217
|
return to_object
|
|
218
218
|
|
|
219
219
|
|
|
@@ -433,6 +433,9 @@ def _ListRagFilesRequestParameters_to_vertex(
|
|
|
433
433
|
parent_object: Optional[dict[str, Any]] = None,
|
|
434
434
|
) -> dict[str, Any]:
|
|
435
435
|
to_object: dict[str, Any] = {}
|
|
436
|
+
if getv(from_object, ["name"]) is not None:
|
|
437
|
+
setv(to_object, ["_url", "name"], getv(from_object, ["name"]))
|
|
438
|
+
|
|
436
439
|
if getv(from_object, ["config"]) is not None:
|
|
437
440
|
setv(
|
|
438
441
|
to_object,
|
|
@@ -440,9 +443,6 @@ def _ListRagFilesRequestParameters_to_vertex(
|
|
|
440
443
|
_ListRagFilesConfig_to_vertex(getv(from_object, ["config"]), to_object),
|
|
441
444
|
)
|
|
442
445
|
|
|
443
|
-
if getv(from_object, ["name"]) is not None:
|
|
444
|
-
setv(to_object, ["_url", "name"], getv(from_object, ["name"]))
|
|
445
|
-
|
|
446
446
|
return to_object
|
|
447
447
|
|
|
448
448
|
|
|
@@ -1543,9 +1543,6 @@ def _UpdateRagCorpusRequestParameters_to_vertex(
|
|
|
1543
1543
|
parent_object: Optional[dict[str, Any]] = None,
|
|
1544
1544
|
) -> dict[str, Any]:
|
|
1545
1545
|
to_object: dict[str, Any] = {}
|
|
1546
|
-
if getv(from_object, ["config"]) is not None:
|
|
1547
|
-
setv(to_object, ["config"], getv(from_object, ["config"]))
|
|
1548
|
-
|
|
1549
1546
|
if getv(from_object, ["name"]) is not None:
|
|
1550
1547
|
setv(to_object, ["_url", "name"], getv(from_object, ["name"]))
|
|
1551
1548
|
|
|
@@ -1556,6 +1553,9 @@ def _UpdateRagCorpusRequestParameters_to_vertex(
|
|
|
1556
1553
|
_RagCorpus_to_vertex(getv(from_object, ["rag_corpus"]), to_object),
|
|
1557
1554
|
)
|
|
1558
1555
|
|
|
1556
|
+
if getv(from_object, ["config"]) is not None:
|
|
1557
|
+
setv(to_object, ["config"], getv(from_object, ["config"]))
|
|
1558
|
+
|
|
1559
1559
|
return to_object
|
|
1560
1560
|
|
|
1561
1561
|
|
|
@@ -1868,7 +1868,7 @@ class Rag(_api_module.BaseModule):
|
|
|
1868
1868
|
return return_value
|
|
1869
1869
|
|
|
1870
1870
|
def get_corpus(
|
|
1871
|
-
self, *, config: Optional[types.GetRagCorpusConfigOrDict] = None
|
|
1871
|
+
self, *, name: str, config: Optional[types.GetRagCorpusConfigOrDict] = None
|
|
1872
1872
|
) -> types.RagCorpus:
|
|
1873
1873
|
"""
|
|
1874
1874
|
Gets a RAG Corpus.
|
|
@@ -1883,8 +1883,8 @@ class Rag(_api_module.BaseModule):
|
|
|
1883
1883
|
"""
|
|
1884
1884
|
|
|
1885
1885
|
parameter_model = types._GetRagCorpusRequestParameters(
|
|
1886
|
-
config=config,
|
|
1887
1886
|
name=name,
|
|
1887
|
+
config=config,
|
|
1888
1888
|
)
|
|
1889
1889
|
|
|
1890
1890
|
request_url_dict: Optional[dict[str, str]]
|
|
@@ -2026,7 +2026,7 @@ class Rag(_api_module.BaseModule):
|
|
|
2026
2026
|
return return_value
|
|
2027
2027
|
|
|
2028
2028
|
def get_file(
|
|
2029
|
-
self, *, config: Optional[types.GetRagFileConfigOrDict] = None
|
|
2029
|
+
self, *, name: str, config: Optional[types.GetRagFileConfigOrDict] = None
|
|
2030
2030
|
) -> types.RagFile:
|
|
2031
2031
|
"""
|
|
2032
2032
|
Gets a RagFile.
|
|
@@ -2041,8 +2041,8 @@ class Rag(_api_module.BaseModule):
|
|
|
2041
2041
|
"""
|
|
2042
2042
|
|
|
2043
2043
|
parameter_model = types._GetRagFileRequestParameters(
|
|
2044
|
-
config=config,
|
|
2045
2044
|
name=name,
|
|
2045
|
+
config=config,
|
|
2046
2046
|
)
|
|
2047
2047
|
|
|
2048
2048
|
request_url_dict: Optional[dict[str, str]]
|
|
@@ -2103,7 +2103,7 @@ class Rag(_api_module.BaseModule):
|
|
|
2103
2103
|
return return_value
|
|
2104
2104
|
|
|
2105
2105
|
def list_files(
|
|
2106
|
-
self, *, config: Optional[types.ListRagFilesConfigOrDict] = None
|
|
2106
|
+
self, *, name: str, config: Optional[types.ListRagFilesConfigOrDict] = None
|
|
2107
2107
|
) -> types.ListRagFilesResponse:
|
|
2108
2108
|
"""
|
|
2109
2109
|
Lists RagFile instances within a RagCorpus.
|
|
@@ -2118,8 +2118,8 @@ class Rag(_api_module.BaseModule):
|
|
|
2118
2118
|
"""
|
|
2119
2119
|
|
|
2120
2120
|
parameter_model = types._ListRagFilesRequestParameters(
|
|
2121
|
-
config=config,
|
|
2122
2121
|
name=name,
|
|
2122
|
+
config=config,
|
|
2123
2123
|
)
|
|
2124
2124
|
|
|
2125
2125
|
request_url_dict: Optional[dict[str, str]]
|
|
@@ -2260,18 +2260,18 @@ class Rag(_api_module.BaseModule):
|
|
|
2260
2260
|
def _update_corpus(
|
|
2261
2261
|
self,
|
|
2262
2262
|
*,
|
|
2263
|
-
config: Optional[types.UpdateRagCorpusConfigOrDict] = None,
|
|
2264
2263
|
name: Optional[str] = None,
|
|
2265
2264
|
rag_corpus: types.RagCorpusOrDict,
|
|
2265
|
+
config: Optional[types.UpdateRagCorpusConfigOrDict] = None,
|
|
2266
2266
|
) -> types.UpdateRagCorpusOperation:
|
|
2267
2267
|
"""
|
|
2268
2268
|
Updates an existing Rag Corpus.
|
|
2269
2269
|
"""
|
|
2270
2270
|
|
|
2271
2271
|
parameter_model = types._UpdateRagCorpusRequestParameters(
|
|
2272
|
-
config=config,
|
|
2273
2272
|
name=name,
|
|
2274
2273
|
rag_corpus=rag_corpus,
|
|
2274
|
+
config=config,
|
|
2275
2275
|
)
|
|
2276
2276
|
|
|
2277
2277
|
request_url_dict: Optional[dict[str, str]]
|
|
@@ -2334,16 +2334,16 @@ class Rag(_api_module.BaseModule):
|
|
|
2334
2334
|
def _delete_corpus(
|
|
2335
2335
|
self,
|
|
2336
2336
|
*,
|
|
2337
|
-
config: Optional[types.DeleteRagCorpusConfigOrDict] = None,
|
|
2338
2337
|
name: Optional[str] = None,
|
|
2338
|
+
config: Optional[types.DeleteRagCorpusConfigOrDict] = None,
|
|
2339
2339
|
) -> types.DeleteRagCorpusOperation:
|
|
2340
2340
|
"""
|
|
2341
2341
|
Deletes a RAG Corpus.
|
|
2342
2342
|
"""
|
|
2343
2343
|
|
|
2344
2344
|
parameter_model = types._DeleteRagCorpusRequestParameters(
|
|
2345
|
-
config=config,
|
|
2346
2345
|
name=name,
|
|
2346
|
+
config=config,
|
|
2347
2347
|
)
|
|
2348
2348
|
|
|
2349
2349
|
request_url_dict: Optional[dict[str, str]]
|
|
@@ -2404,15 +2404,15 @@ class Rag(_api_module.BaseModule):
|
|
|
2404
2404
|
return return_value
|
|
2405
2405
|
|
|
2406
2406
|
def _delete_file(
|
|
2407
|
-
self, *, config: Optional[types.DeleteRagFileConfigOrDict] = None
|
|
2407
|
+
self, *, name: str, config: Optional[types.DeleteRagFileConfigOrDict] = None
|
|
2408
2408
|
) -> types.DeleteRagFileOperation:
|
|
2409
2409
|
"""
|
|
2410
2410
|
Deletes a RAG File.
|
|
2411
2411
|
"""
|
|
2412
2412
|
|
|
2413
2413
|
parameter_model = types._DeleteRagFileRequestParameters(
|
|
2414
|
-
config=config,
|
|
2415
2414
|
name=name,
|
|
2415
|
+
config=config,
|
|
2416
2416
|
)
|
|
2417
2417
|
|
|
2418
2418
|
request_url_dict: Optional[dict[str, str]]
|
|
@@ -3516,7 +3516,7 @@ class AsyncRag(_api_module.BaseModule):
|
|
|
3516
3516
|
return return_value
|
|
3517
3517
|
|
|
3518
3518
|
async def get_corpus(
|
|
3519
|
-
self, *, config: Optional[types.GetRagCorpusConfigOrDict] = None
|
|
3519
|
+
self, *, name: str, config: Optional[types.GetRagCorpusConfigOrDict] = None
|
|
3520
3520
|
) -> types.RagCorpus:
|
|
3521
3521
|
"""
|
|
3522
3522
|
Gets a RAG Corpus.
|
|
@@ -3531,8 +3531,8 @@ class AsyncRag(_api_module.BaseModule):
|
|
|
3531
3531
|
"""
|
|
3532
3532
|
|
|
3533
3533
|
parameter_model = types._GetRagCorpusRequestParameters(
|
|
3534
|
-
config=config,
|
|
3535
3534
|
name=name,
|
|
3535
|
+
config=config,
|
|
3536
3536
|
)
|
|
3537
3537
|
|
|
3538
3538
|
request_url_dict: Optional[dict[str, str]]
|
|
@@ -3678,7 +3678,7 @@ class AsyncRag(_api_module.BaseModule):
|
|
|
3678
3678
|
return return_value
|
|
3679
3679
|
|
|
3680
3680
|
async def get_file(
|
|
3681
|
-
self, *, config: Optional[types.GetRagFileConfigOrDict] = None
|
|
3681
|
+
self, *, name: str, config: Optional[types.GetRagFileConfigOrDict] = None
|
|
3682
3682
|
) -> types.RagFile:
|
|
3683
3683
|
"""
|
|
3684
3684
|
Gets a RagFile.
|
|
@@ -3693,8 +3693,8 @@ class AsyncRag(_api_module.BaseModule):
|
|
|
3693
3693
|
"""
|
|
3694
3694
|
|
|
3695
3695
|
parameter_model = types._GetRagFileRequestParameters(
|
|
3696
|
-
config=config,
|
|
3697
3696
|
name=name,
|
|
3697
|
+
config=config,
|
|
3698
3698
|
)
|
|
3699
3699
|
|
|
3700
3700
|
request_url_dict: Optional[dict[str, str]]
|
|
@@ -3757,7 +3757,7 @@ class AsyncRag(_api_module.BaseModule):
|
|
|
3757
3757
|
return return_value
|
|
3758
3758
|
|
|
3759
3759
|
async def list_files(
|
|
3760
|
-
self, *, config: Optional[types.ListRagFilesConfigOrDict] = None
|
|
3760
|
+
self, *, name: str, config: Optional[types.ListRagFilesConfigOrDict] = None
|
|
3761
3761
|
) -> types.ListRagFilesResponse:
|
|
3762
3762
|
"""
|
|
3763
3763
|
Lists RagFile instances within a RagCorpus.
|
|
@@ -3772,8 +3772,8 @@ class AsyncRag(_api_module.BaseModule):
|
|
|
3772
3772
|
"""
|
|
3773
3773
|
|
|
3774
3774
|
parameter_model = types._ListRagFilesRequestParameters(
|
|
3775
|
-
config=config,
|
|
3776
3775
|
name=name,
|
|
3776
|
+
config=config,
|
|
3777
3777
|
)
|
|
3778
3778
|
|
|
3779
3779
|
request_url_dict: Optional[dict[str, str]]
|
|
@@ -3918,18 +3918,18 @@ class AsyncRag(_api_module.BaseModule):
|
|
|
3918
3918
|
async def _update_corpus(
|
|
3919
3919
|
self,
|
|
3920
3920
|
*,
|
|
3921
|
-
config: Optional[types.UpdateRagCorpusConfigOrDict] = None,
|
|
3922
3921
|
name: Optional[str] = None,
|
|
3923
3922
|
rag_corpus: types.RagCorpusOrDict,
|
|
3923
|
+
config: Optional[types.UpdateRagCorpusConfigOrDict] = None,
|
|
3924
3924
|
) -> types.UpdateRagCorpusOperation:
|
|
3925
3925
|
"""
|
|
3926
3926
|
Updates an existing Rag Corpus.
|
|
3927
3927
|
"""
|
|
3928
3928
|
|
|
3929
3929
|
parameter_model = types._UpdateRagCorpusRequestParameters(
|
|
3930
|
-
config=config,
|
|
3931
3930
|
name=name,
|
|
3932
3931
|
rag_corpus=rag_corpus,
|
|
3932
|
+
config=config,
|
|
3933
3933
|
)
|
|
3934
3934
|
|
|
3935
3935
|
request_url_dict: Optional[dict[str, str]]
|
|
@@ -3994,16 +3994,16 @@ class AsyncRag(_api_module.BaseModule):
|
|
|
3994
3994
|
async def _delete_corpus(
|
|
3995
3995
|
self,
|
|
3996
3996
|
*,
|
|
3997
|
-
config: Optional[types.DeleteRagCorpusConfigOrDict] = None,
|
|
3998
3997
|
name: Optional[str] = None,
|
|
3998
|
+
config: Optional[types.DeleteRagCorpusConfigOrDict] = None,
|
|
3999
3999
|
) -> types.DeleteRagCorpusOperation:
|
|
4000
4000
|
"""
|
|
4001
4001
|
Deletes a RAG Corpus.
|
|
4002
4002
|
"""
|
|
4003
4003
|
|
|
4004
4004
|
parameter_model = types._DeleteRagCorpusRequestParameters(
|
|
4005
|
-
config=config,
|
|
4006
4005
|
name=name,
|
|
4006
|
+
config=config,
|
|
4007
4007
|
)
|
|
4008
4008
|
|
|
4009
4009
|
request_url_dict: Optional[dict[str, str]]
|
|
@@ -4066,15 +4066,15 @@ class AsyncRag(_api_module.BaseModule):
|
|
|
4066
4066
|
return return_value
|
|
4067
4067
|
|
|
4068
4068
|
async def _delete_file(
|
|
4069
|
-
self, *, config: Optional[types.DeleteRagFileConfigOrDict] = None
|
|
4069
|
+
self, *, name: str, config: Optional[types.DeleteRagFileConfigOrDict] = None
|
|
4070
4070
|
) -> types.DeleteRagFileOperation:
|
|
4071
4071
|
"""
|
|
4072
4072
|
Deletes a RAG File.
|
|
4073
4073
|
"""
|
|
4074
4074
|
|
|
4075
4075
|
parameter_model = types._DeleteRagFileRequestParameters(
|
|
4076
|
-
config=config,
|
|
4077
4076
|
name=name,
|
|
4077
|
+
config=config,
|
|
4078
4078
|
)
|
|
4079
4079
|
|
|
4080
4080
|
request_url_dict: Optional[dict[str, str]]
|