Skip to content

Commit c78a540

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
feat: Add filtering to Vertex Experiments SDK.
PiperOrigin-RevId: 712660486
1 parent c814452 commit c78a540

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

google/cloud/aiplatform/metadata/experiment_resources.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ def get_or_create(
316316
def list(
317317
cls,
318318
*,
319+
filter_str: Optional[str] = None,
319320
project: Optional[str] = None,
320321
location: Optional[str] = None,
321322
credentials: Optional[auth_credentials.Credentials] = None,
@@ -327,6 +328,9 @@ def list(
327328
```
328329
329330
Args:
331+
filter (str):
332+
Optional. An expression for filtering the results of the request.
333+
For field names both snake_case and camelCase are supported.
330334
project (str):
331335
Optional. Project to list these experiments from. Overrides project set in
332336
aiplatform.init.
@@ -342,7 +346,7 @@ def list(
342346

343347
filter_str = metadata_utils._make_filter_string(
344348
schema_title=constants.SYSTEM_EXPERIMENT
345-
)
349+
) + " AND " + filter_str
346350

347351
with _SetLoggerLevel(resource):
348352
experiment_contexts = context.Context.list(

0 commit comments

Comments
 (0)