guan404ming commented on code in PR #71046:
URL: https://github.com/apache/airflow/pull/71046#discussion_r3711354135


##########
providers/common/ai/src/airflow/providers/common/ai/operators/llm_branch.py:
##########
@@ -121,7 +121,9 @@ def execute(self, context: Context) -> str | Iterable[str] 
| None:
                 f"```\nPrompt: {self.prompt}\n\nChosen branch(es): 
{chosen}\n```"
             )
             modification_schema = (
-                None if self.allow_multiple_branches else {"type": "string", 
"enum": choices}
+                {"type": "array", "enum": choices}

Review Comment:
   Fixed, switched to `{"type": "array", "items": {"type": "string", "enum": 
[...]}, "examples": [...]}` and updated the mixin docstring. The multiselect 
test now also validates the emitted schema with a real Param/jsonschema 
round-trip, so the legacy-path regression is covered.



-- 
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