@@ -87,6 +87,7 @@ def retrieve(
8787 def list (
8888 self ,
8989 * ,
90+ ancestor_run_id : str | Omit = omit ,
9091 artifact_type : Literal ["PLAN" , "PULL_REQUEST" , "SCREENSHOT" , "FILE" ] | Omit = omit ,
9192 created_after : Union [str , datetime ] | Omit = omit ,
9293 created_before : Union [str , datetime ] | Omit = omit ,
@@ -119,6 +120,9 @@ def list(
119120 to `sort_by=updated_at` and `sort_order=desc`.
120121
121122 Args:
123+ ancestor_run_id: Filter runs by ancestor run ID. The referenced run must exist and be accessible
124+ to the caller.
125+
122126 artifact_type: Filter runs by artifact type
123127
124128 created_after: Filter runs created after this timestamp (RFC3339 format)
@@ -182,6 +186,7 @@ def list(
182186 timeout = timeout ,
183187 query = maybe_transform (
184188 {
189+ "ancestor_run_id" : ancestor_run_id ,
185190 "artifact_type" : artifact_type ,
186191 "created_after" : created_after ,
187192 "created_before" : created_before ,
@@ -307,6 +312,7 @@ async def retrieve(
307312 def list (
308313 self ,
309314 * ,
315+ ancestor_run_id : str | Omit = omit ,
310316 artifact_type : Literal ["PLAN" , "PULL_REQUEST" , "SCREENSHOT" , "FILE" ] | Omit = omit ,
311317 created_after : Union [str , datetime ] | Omit = omit ,
312318 created_before : Union [str , datetime ] | Omit = omit ,
@@ -339,6 +345,9 @@ def list(
339345 to `sort_by=updated_at` and `sort_order=desc`.
340346
341347 Args:
348+ ancestor_run_id: Filter runs by ancestor run ID. The referenced run must exist and be accessible
349+ to the caller.
350+
342351 artifact_type: Filter runs by artifact type
343352
344353 created_after: Filter runs created after this timestamp (RFC3339 format)
@@ -402,6 +411,7 @@ def list(
402411 timeout = timeout ,
403412 query = maybe_transform (
404413 {
414+ "ancestor_run_id" : ancestor_run_id ,
405415 "artifact_type" : artifact_type ,
406416 "created_after" : created_after ,
407417 "created_before" : created_before ,
0 commit comments