kaxil opened a new pull request, #69070:
URL: https://github.com/apache/airflow/pull/69070

   
   Add OpenAI Responses and Conversations support to the provider -- the 
interface OpenAI now recommends for text generation and tool use, and the 
forward path as the Assistants API approaches its 2026-08-26 removal.
   
   > Stacked on #69068 (requires ``openai>=2.37.0``). Review the latest commit; 
the first commit is #69068 and drops out once it merges.
   
   ## What's added
   
   New ``OpenAIHook`` methods:
   
   - Responses: ``create_response``, ``get_response``, ``delete_response``, 
``cancel_response``
   - Conversations: ``create_conversation``, ``get_conversation``, 
``update_conversation``, ``delete_conversation``
   
   New operator:
   
   - ``OpenAIResponseOperator`` -- generates a response from an ``input_text`` 
prompt and returns the aggregated output text. Pass ``instructions``, 
``tools``, ``conversation``, ``previous_response_id`` etc. through 
``response_kwargs``.
   
   ## Design notes
   
   - **Operator scope:** the operator is intentionally synchronous and returns 
``output_text`` (the common case). For ``previous_response_id`` chaining, 
``background=True`` responses, or the full structured ``Response``, use the 
hook directly -- documented in the operator docstring and the hook guide. It 
logs a warning when the response status isn't ``completed`` so an empty 
``output_text`` (for example from a queued background response) isn't a silent 
success.
   - **Conversation items** (``conversations.items``) are out of scope here; 
multi-turn continuity works via ``conversation=<id>`` / 
``previous_response_id`` on responses.
   
   ## Follow-up
   
   A separate PR will deprecate the Assistants/Threads hook methods now that 
Responses/Conversations provide the replacement.
   
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   <!--
   If generative AI tooling has been used in the process of authoring this PR, 
please
   change below checkbox to `[X]` followed by the name of the tool, uncomment 
the "Generated-by".
   -->
   
   - [ ] Yes (please specify the tool below)
   
   <!--
   Generated-by: [Tool Name] following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to