Skip to content

Commit 836520c

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google/cloud/aiplatform/metadata/experiment_resources.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ def list(
319319
project: Optional[str] = None,
320320
location: Optional[str] = None,
321321
credentials: Optional[auth_credentials.Credentials] = None,
322+
filter: Optional[str] = None,
322323
) -> List["Experiment"]:
323324
"""List all Vertex AI Experiments in the given project.
324325
@@ -342,7 +343,7 @@ def list(
342343

343344
filter_str = metadata_utils._make_filter_string(
344345
schema_title=constants.SYSTEM_EXPERIMENT
345-
)
346+
) + " AND " + filter
346347

347348
with _SetLoggerLevel(resource):
348349
experiment_contexts = context.Context.list(

0 commit comments

Comments
 (0)