@@ -73,6 +73,16 @@ def create(
7373 Create a new batch for processing multiple API requests.
7474
7575 Args:
76+ completion_window: The time window within which the batch should be processed.
77+
78+ endpoint: The endpoint to be used for all requests in the batch.
79+
80+ input_file_id: The ID of an uploaded file containing requests for the batch.
81+
82+ idempotency_key: Optional idempotency key. When provided, enables idempotent behavior.
83+
84+ metadata: Optional metadata for the batch.
85+
7686 extra_headers: Send extra headers
7787
7888 extra_query: Add additional query parameters to the request
@@ -114,6 +124,8 @@ def retrieve(
114124 Retrieve information about a specific batch.
115125
116126 Args:
127+ batch_id: The ID of the batch to retrieve.
128+
117129 extra_headers: Send extra headers
118130
119131 extra_query: Add additional query parameters to the request
@@ -148,6 +160,10 @@ def list(
148160 List all batches for the current user.
149161
150162 Args:
163+ after: Optional cursor for pagination. Returns batches after this ID.
164+
165+ limit: Maximum number of batches to return. Defaults to 20.
166+
151167 extra_headers: Send extra headers
152168
153169 extra_query: Add additional query parameters to the request
@@ -190,6 +206,8 @@ def cancel(
190206 Cancel a batch that is in progress.
191207
192208 Args:
209+ batch_id: The ID of the batch to cancel.
210+
193211 extra_headers: Send extra headers
194212
195213 extra_query: Add additional query parameters to the request
@@ -248,6 +266,16 @@ async def create(
248266 Create a new batch for processing multiple API requests.
249267
250268 Args:
269+ completion_window: The time window within which the batch should be processed.
270+
271+ endpoint: The endpoint to be used for all requests in the batch.
272+
273+ input_file_id: The ID of an uploaded file containing requests for the batch.
274+
275+ idempotency_key: Optional idempotency key. When provided, enables idempotent behavior.
276+
277+ metadata: Optional metadata for the batch.
278+
251279 extra_headers: Send extra headers
252280
253281 extra_query: Add additional query parameters to the request
@@ -289,6 +317,8 @@ async def retrieve(
289317 Retrieve information about a specific batch.
290318
291319 Args:
320+ batch_id: The ID of the batch to retrieve.
321+
292322 extra_headers: Send extra headers
293323
294324 extra_query: Add additional query parameters to the request
@@ -323,6 +353,10 @@ def list(
323353 List all batches for the current user.
324354
325355 Args:
356+ after: Optional cursor for pagination. Returns batches after this ID.
357+
358+ limit: Maximum number of batches to return. Defaults to 20.
359+
326360 extra_headers: Send extra headers
327361
328362 extra_query: Add additional query parameters to the request
@@ -365,6 +399,8 @@ async def cancel(
365399 Cancel a batch that is in progress.
366400
367401 Args:
402+ batch_id: The ID of the batch to cancel.
403+
368404 extra_headers: Send extra headers
369405
370406 extra_query: Add additional query parameters to the request
0 commit comments