@@ -203,6 +203,7 @@ def list(
203203 before : str | NotGiven = NOT_GIVEN ,
204204 limit : int | NotGiven = NOT_GIVEN ,
205205 order : Literal ["asc" , "desc" ] | NotGiven = NOT_GIVEN ,
206+ run_id : str | NotGiven = NOT_GIVEN ,
206207 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
207208 # The extra values given here take precedence over values defined on the client or passed to this method.
208209 extra_headers : Headers | None = None ,
@@ -230,6 +231,8 @@ def list(
230231 order: Sort order by the `created_at` timestamp of the objects. `asc` for ascending
231232 order and `desc` for descending order.
232233
234+ run_id: Filter messages by the run ID that generated them.
235+
233236 extra_headers: Send extra headers
234237
235238 extra_query: Add additional query parameters to the request
@@ -255,6 +258,7 @@ def list(
255258 "before" : before ,
256259 "limit" : limit ,
257260 "order" : order ,
261+ "run_id" : run_id ,
258262 },
259263 message_list_params .MessageListParams ,
260264 ),
@@ -432,6 +436,7 @@ def list(
432436 before : str | NotGiven = NOT_GIVEN ,
433437 limit : int | NotGiven = NOT_GIVEN ,
434438 order : Literal ["asc" , "desc" ] | NotGiven = NOT_GIVEN ,
439+ run_id : str | NotGiven = NOT_GIVEN ,
435440 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
436441 # The extra values given here take precedence over values defined on the client or passed to this method.
437442 extra_headers : Headers | None = None ,
@@ -459,6 +464,8 @@ def list(
459464 order: Sort order by the `created_at` timestamp of the objects. `asc` for ascending
460465 order and `desc` for descending order.
461466
467+ run_id: Filter messages by the run ID that generated them.
468+
462469 extra_headers: Send extra headers
463470
464471 extra_query: Add additional query parameters to the request
@@ -484,6 +491,7 @@ def list(
484491 "before" : before ,
485492 "limit" : limit ,
486493 "order" : order ,
494+ "run_id" : run_id ,
487495 },
488496 message_list_params .MessageListParams ,
489497 ),
0 commit comments