@@ -239,10 +239,13 @@ async def run(
239239 Pass ``None`` to disable the turn limit.
240240 hooks: An object that receives callbacks on various lifecycle events.
241241 run_config: Global settings for the entire agent run.
242- error_handlers: Error handlers keyed by error kind. Currently supports max_turns.
242+ error_handlers: Error handlers keyed by error kind.
243243 previous_response_id: The ID of the previous response. If using OpenAI
244244 models via the Responses API, this allows you to skip passing in input
245245 from the previous turn.
246+ auto_previous_response_id: If True, enable Responses API response chaining
247+ automatically for the first turn even when no
248+ ``previous_response_id`` is supplied yet.
246249 conversation_id: The conversation ID
247250 (https://platform.openai.com/docs/guides/conversation-state?api-mode=responses).
248251 If provided, the conversation will be used to read and write items.
@@ -325,10 +328,13 @@ def run_sync(
325328 Pass ``None`` to disable the turn limit.
326329 hooks: An object that receives callbacks on various lifecycle events.
327330 run_config: Global settings for the entire agent run.
328- error_handlers: Error handlers keyed by error kind. Currently supports max_turns.
331+ error_handlers: Error handlers keyed by error kind.
329332 previous_response_id: The ID of the previous response, if using OpenAI
330333 models via the Responses API, this allows you to skip passing in input
331334 from the previous turn.
335+ auto_previous_response_id: If True, enable Responses API response chaining
336+ automatically for the first turn even when no
337+ ``previous_response_id`` is supplied yet.
332338 conversation_id: The ID of the stored conversation, if any.
333339 session: A session for automatic conversation history management.
334340
@@ -402,10 +408,13 @@ def run_streamed(
402408 Pass ``None`` to disable the turn limit.
403409 hooks: An object that receives callbacks on various lifecycle events.
404410 run_config: Global settings for the entire agent run.
405- error_handlers: Error handlers keyed by error kind. Currently supports max_turns.
411+ error_handlers: Error handlers keyed by error kind.
406412 previous_response_id: The ID of the previous response, if using OpenAI
407413 models via the Responses API, this allows you to skip passing in input
408414 from the previous turn.
415+ auto_previous_response_id: If True, enable Responses API response chaining
416+ automatically for the first turn even when no
417+ ``previous_response_id`` is supplied yet.
409418 conversation_id: The ID of the stored conversation, if any.
410419 session: A session for automatic conversation history management.
411420
0 commit comments