guan404ming commented on code in PR #71046:
URL: https://github.com/apache/airflow/pull/71046#discussion_r3711355950
##########
providers/common/ai/src/airflow/providers/common/ai/mixins/approval.py:
##########
@@ -215,13 +227,17 @@ def execute_complete(self, context: Context,
generated_output: str, event: dict[
# when allow_modifications=False, bypassing the read-only approval
flow.
if getattr(self, "allow_modifications", False) and params_input:
modified = params_input.get("output")
+ if isinstance(modified, list) and all(isinstance(item, str) for
item in modified):
Review Comment:
Make sense to me, a cleared selection now raises instead of silently
re-applying the LLM's branches.
--
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]