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

   ## Related
   
   - Depends on #74388 (reuses `describe_prompt`). Review only the last commit.
   
   ## Why
   
   - `enable_hitl_review=True` raised `TypeError` for a `Sequence[UserContent]` 
prompt in `AgentOperator` and `@task.agent`.
   - The HITL session stores the prompt as a string, so a multimodal prompt had 
no way into the review.
   
   ## How
   
   - Store `describe_prompt(self.prompt)` in the HITL session, with a 
placeholder for each non-text part.
   - Drop the string-only guards in `AgentOperator.execute` and `@task.agent`, 
and remove the now-unused `reject_sequence_with_unsupported_feature`.
   - Update the agent 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