Skip to content

Commit 6b11634

Browse files
jsondaicopybara-github
authored andcommitted
chore: GenAI Client - remove experimental (non-GA) warnings from Python SDK
PiperOrigin-RevId: 947753708
1 parent 852c546 commit 6b11634

8 files changed

Lines changed: 0 additions & 274 deletions

File tree

agentplatform/_genai/client.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
import google.auth
2323
from google.cloud.aiplatform import version as aip_version
24-
from google.genai import _common
2524
from google.genai import client as genai_client
2625
from google.genai import types
2726
from google.genai import version as genai_version
@@ -94,10 +93,6 @@ def __init__(self, api_client: genai_client.BaseApiClient): # type: ignore[name
9493
self._feedback_entries: Optional[ModuleType] = None
9594

9695
@property
97-
@_common.experimental_warning(
98-
"The Vertex SDK GenAI live module is experimental, and may change in future "
99-
"versions."
100-
)
10196
def live(self) -> "live_module.AsyncLive":
10297
return self._live
10398

@@ -152,10 +147,6 @@ def prompts(self) -> "prompts_module.AsyncPrompts":
152147
return self._prompts.AsyncPrompts(self._api_client) # type: ignore[no-any-return]
153148

154149
@property
155-
@_common.experimental_warning(
156-
"The Vertex SDK GenAI async datasets module is experimental, "
157-
"and may change in future versions."
158-
)
159150
def datasets(self) -> "datasets_module.AsyncDatasets":
160151
if self._datasets is None:
161152
self._datasets = importlib.import_module(
@@ -183,10 +174,6 @@ def feedback_entries(self) -> "feedback_entries_module.AsyncFeedbackEntries":
183174
return self._feedback_entries.AsyncFeedbackEntries(self._api_client) # type: ignore[no-any-return]
184175

185176
@property
186-
@_common.experimental_warning(
187-
"The Vertex SDK GenAI async rag module is experimental, "
188-
"and may change in future versions."
189-
)
190177
def rag(self) -> "rag_module.AsyncRag":
191178
if self._rag is None:
192179
self._rag = importlib.import_module(
@@ -196,9 +183,6 @@ def rag(self) -> "rag_module.AsyncRag":
196183
return self._rag.AsyncRag(self._api_client) # type: ignore[no-any-return]
197184

198185
@property
199-
@_common.experimental_warning(
200-
"The Model Garden module is experimental, and may change in future " "versions."
201-
)
202186
def model_garden(self) -> "model_garden_module.AsyncModelGarden":
203187
if self._model_garden is None:
204188
self._model_garden = importlib.import_module(
@@ -399,10 +383,6 @@ def prompts(self) -> "prompts_module.Prompts":
399383
return self._prompts.Prompts(self._api_client) # type: ignore[no-any-return]
400384

401385
@property
402-
@_common.experimental_warning(
403-
"The Vertex SDK GenAI datasets module is experimental, "
404-
"and may change in future versions."
405-
)
406386
def datasets(self) -> "datasets_module.Datasets":
407387
if self._datasets is None:
408388
self._datasets = importlib.import_module(
@@ -430,10 +410,6 @@ def feedback_entries(self) -> "feedback_entries_module.FeedbackEntries":
430410
return self._feedback_entries.FeedbackEntries(self._api_client) # type: ignore[no-any-return]
431411

432412
@property
433-
@_common.experimental_warning(
434-
"The Vertex SDK GenAI rag module is experimental, "
435-
"and may change in future versions."
436-
)
437413
def rag(self) -> "rag_module.Rag":
438414
if self._rag is None:
439415
self._rag = importlib.import_module(
@@ -443,9 +419,6 @@ def rag(self) -> "rag_module.Rag":
443419
return self._rag.Rag(self._api_client) # type: ignore[no-any-return]
444420

445421
@property
446-
@_common.experimental_warning(
447-
"The Model Garden module is experimental, and may change in future " "versions."
448-
)
449422
def model_garden(self) -> "model_garden_module.ModelGarden":
450423
if self._model_garden is None:
451424
self._model_garden = importlib.import_module(

agentplatform/_genai/evals.py

Lines changed: 0 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -2592,10 +2592,6 @@ def generate_rubrics(
25922592
)
25932593
return types.EvaluationDataset(eval_dataset_df=prompts_with_rubrics)
25942594

2595-
@_common.experimental_warning(
2596-
"The Vertex SDK GenAI evals.get_evaluation_run module is experimental, "
2597-
"and may change in future versions."
2598-
)
25992595
def get_evaluation_run(
26002596
self,
26012597
*,
@@ -2633,10 +2629,6 @@ def get_evaluation_run(
26332629
object.__setattr__(result, "_eval_item_map", eval_item_map)
26342630
return result
26352631

2636-
@_common.experimental_warning(
2637-
"The Vertex SDK GenAI evals.create_evaluation_run module is experimental, "
2638-
"and may change in future versions."
2639-
)
26402632
def create_evaluation_run(
26412633
self,
26422634
*,
@@ -2815,10 +2807,6 @@ def create_evaluation_run(
28152807
config=config,
28162808
)
28172809

2818-
@_common.experimental_warning(
2819-
"The Vertex SDK GenAI evals.get_evaluation_set method is experimental, "
2820-
"and may change in future versions."
2821-
)
28222810
def get_evaluation_set(
28232811
self,
28242812
*,
@@ -2843,10 +2831,6 @@ def get_evaluation_set(
28432831
name = name.split("/")[-1]
28442832
return self._get_evaluation_set(name=name, config=config)
28452833

2846-
@_common.experimental_warning(
2847-
"The Vertex SDK GenAI evals.get_evaluation_item method is experimental, "
2848-
"and may change in future versions."
2849-
)
28502834
def get_evaluation_item(
28512835
self,
28522836
*,
@@ -2889,10 +2873,6 @@ def get_evaluation_item(
28892873
)
28902874
return result
28912875

2892-
@_common.experimental_warning(
2893-
"The Vertex SDK GenAI evals.create_evaluation_item module is experimental, "
2894-
"and may change in future versions."
2895-
)
28962876
def create_evaluation_item(
28972877
self,
28982878
*,
@@ -2920,10 +2900,6 @@ def create_evaluation_item(
29202900
config=config,
29212901
)
29222902

2923-
@_common.experimental_warning(
2924-
"The Vertex SDK GenAI evals.create_evaluation_set module is experimental, "
2925-
"and may change in future versions."
2926-
)
29272903
def create_evaluation_set(
29282904
self,
29292905
*,
@@ -2949,10 +2925,6 @@ def create_evaluation_set(
29492925
config=config,
29502926
)
29512927

2952-
@_common.experimental_warning(
2953-
"The Vertex SDK GenAI evals.generate_conversation_scenarios module is experimental, "
2954-
"and may change in future versions."
2955-
)
29562928
def generate_conversation_scenarios(
29572929
self,
29582930
*,
@@ -2986,10 +2958,6 @@ def generate_conversation_scenarios(
29862958
)
29872959
return _evals_utils._postprocess_user_scenarios_response(response)
29882960

2989-
@_common.experimental_warning(
2990-
"The Vertex SDK GenAI evals.generate_loss_clusters module is experimental, "
2991-
"and may change in future versions."
2992-
)
29932961
def generate_loss_clusters(
29942962
self,
29952963
*,
@@ -3067,10 +3035,6 @@ def generate_loss_clusters(
30673035
)
30683036
return completed.response
30693037

3070-
@_common.experimental_warning(
3071-
"The Vertex SDK GenAI evals.create_evaluation_metric method is experimental, "
3072-
"and may change in future versions."
3073-
)
30743038
def create_evaluation_metric(
30753039
self,
30763040
*,
@@ -3104,10 +3068,6 @@ def create_evaluation_metric(
31043068
# result.name is Optional[str], but we know it's always returned on creation
31053069
return cast(str, result.name)
31063070

3107-
@_common.experimental_warning(
3108-
"The Vertex SDK GenAI evals.get_evaluation_metric module is experimental, "
3109-
"and may change in future versions."
3110-
)
31113071
def get_evaluation_metric(
31123072
self,
31133073
*,
@@ -3120,10 +3080,6 @@ def get_evaluation_metric(
31203080
config=config,
31213081
)
31223082

3123-
@_common.experimental_warning(
3124-
"The Vertex SDK GenAI evals.list_evaluation_metrics module is experimental, "
3125-
"and may change in future versions."
3126-
)
31273083
def list_evaluation_metrics(
31283084
self,
31293085
*,
@@ -3162,10 +3118,6 @@ def list_evaluation_metrics(
31623118
config=config,
31633119
)
31643120

3165-
@_common.experimental_warning(
3166-
"The Vertex SDK GenAI evals.delete_evaluation_metric method is experimental, "
3167-
"and may change in future versions."
3168-
)
31693121
def delete_evaluation_metric(
31703122
self,
31713123
*,
@@ -4395,10 +4347,6 @@ async def evaluate_instances(
43954347

43964348
return result
43974349

4398-
@_common.experimental_warning(
4399-
"The Vertex SDK GenAI evals.get_evaluation_run module is experimental, "
4400-
"and may change in future versions."
4401-
)
44024350
async def get_evaluation_run(
44034351
self,
44044352
*,
@@ -4439,10 +4387,6 @@ async def get_evaluation_run(
44394387

44404388
return result
44414389

4442-
@_common.experimental_warning(
4443-
"The Vertex SDK GenAI evals.create_evaluation_run module is experimental, "
4444-
"and may change in future versions."
4445-
)
44464390
async def create_evaluation_run(
44474391
self,
44484392
*,
@@ -4624,10 +4568,6 @@ async def create_evaluation_run(
46244568

46254569
return result
46264570

4627-
@_common.experimental_warning(
4628-
"The Vertex SDK GenAI evals.get_evaluation_set method is experimental, "
4629-
"and may change in future versions."
4630-
)
46314571
async def get_evaluation_set(
46324572
self,
46334573
*,
@@ -4653,10 +4593,6 @@ async def get_evaluation_set(
46534593

46544594
return result
46554595

4656-
@_common.experimental_warning(
4657-
"The Vertex SDK GenAI evals.get_evaluation_item method is experimental, "
4658-
"and may change in future versions."
4659-
)
46604596
async def get_evaluation_item(
46614597
self,
46624598
*,
@@ -4700,10 +4636,6 @@ async def get_evaluation_item(
47004636

47014637
return result
47024638

4703-
@_common.experimental_warning(
4704-
"The Vertex SDK GenAI evals.create_evaluation_item module is experimental, "
4705-
"and may change in future versions."
4706-
)
47074639
async def create_evaluation_item(
47084640
self,
47094641
*,
@@ -4732,10 +4664,6 @@ async def create_evaluation_item(
47324664
)
47334665
return result
47344666

4735-
@_common.experimental_warning(
4736-
"The Vertex SDK GenAI evals.create_evaluation_set module is experimental, "
4737-
"and may change in future versions."
4738-
)
47394667
async def create_evaluation_set(
47404668
self,
47414669
*,
@@ -4762,10 +4690,6 @@ async def create_evaluation_set(
47624690
)
47634691
return result
47644692

4765-
@_common.experimental_warning(
4766-
"The Vertex SDK GenAI evals.generate_conversation_scenarios module is experimental, "
4767-
"and may change in future versions."
4768-
)
47694693
async def generate_conversation_scenarios(
47704694
self,
47714695
*,
@@ -4799,10 +4723,6 @@ async def generate_conversation_scenarios(
47994723
)
48004724
return _evals_utils._postprocess_user_scenarios_response(response)
48014725

4802-
@_common.experimental_warning(
4803-
"The Vertex SDK GenAI evals.generate_loss_clusters module is experimental, "
4804-
"and may change in future versions."
4805-
)
48064726
async def generate_loss_clusters(
48074727
self,
48084728
*,
@@ -4880,10 +4800,6 @@ async def generate_loss_clusters(
48804800
)
48814801
return completed.response
48824802

4883-
@_common.experimental_warning(
4884-
"The Vertex SDK GenAI evals.create_evaluation_metric module is experimental, "
4885-
"and may change in future versions."
4886-
)
48874803
async def create_evaluation_metric(
48884804
self,
48894805
*,
@@ -4914,10 +4830,6 @@ async def create_evaluation_metric(
49144830
)
49154831
return cast(str, result.name)
49164832

4917-
@_common.experimental_warning(
4918-
"The Vertex SDK GenAI evals.get_evaluation_metric module is experimental, "
4919-
"and may change in future versions."
4920-
)
49214833
async def get_evaluation_metric(
49224834
self,
49234835
*,
@@ -4930,10 +4842,6 @@ async def get_evaluation_metric(
49304842
config=config,
49314843
)
49324844

4933-
@_common.experimental_warning(
4934-
"The Vertex SDK GenAI evals.list_evaluation_metrics module is experimental, "
4935-
"and may change in future versions."
4936-
)
49374845
async def list_evaluation_metrics(
49384846
self,
49394847
*,
@@ -4972,10 +4880,6 @@ async def list_evaluation_metrics(
49724880
config=config,
49734881
)
49744882

4975-
@_common.experimental_warning(
4976-
"The Vertex SDK GenAI evals.delete_evaluation_metric method is experimental, "
4977-
"and may change in future versions."
4978-
)
49794883
async def delete_evaluation_metric(
49804884
self,
49814885
*,

agentplatform/_genai/live.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from types import ModuleType
2323

2424
from google.genai import _api_module
25-
from google.genai import _common
2625
from google.genai._api_client import BaseApiClient
2726

2827
logger = logging.getLogger("google_genai.live")
@@ -41,10 +40,6 @@ def __init__(self, api_client: BaseApiClient):
4140
self._agent_engines: Optional[ModuleType] = None
4241

4342
@property
44-
@_common.experimental_warning(
45-
"The Vertex SDK GenAI agent engines module is experimental, "
46-
"and may change in future versions."
47-
)
4843
def agent_engines(self) -> "live_agent_engines_module.AsyncLiveAgentEngines":
4944
if self._agent_engines is None:
5045
try:

0 commit comments

Comments
 (0)