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

   ## Why
   
   - `require_approval=True` raised `TypeError` for a `Sequence[UserContent]` 
prompt in `LLMOperator`, `LLMSQLQueryOperator`, `LLMBranchOperator`, 
`LLMSchemaCompareOperator` and their decorators.
   - The guard existed only because the review body printed the raw prompt, 
which would expose object reprs and embedded bytes.
   
   ## How
   
   - Add `describe_prompt`, which keeps text parts and replaces each non-text 
part with a placeholder such as `[image/png, 2048 bytes]` or `[image-url: 
https://...]`.
   - Use it in the approval review body and drop the string-only guards in the 
operators and decorators.
   - Update the operator docs.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [x] Yes, with help of Claude Code Opus 5.5 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