guan404ming commented on code in PR #71051:
URL: https://github.com/apache/airflow/pull/71051#discussion_r3754844423
##########
providers/common/ai/src/airflow/providers/common/ai/operators/llm_schema_compare.py:
##########
@@ -126,9 +134,9 @@ def __init__(
system_prompt: str = DEFAULT_SYSTEM_PROMPT,
**kwargs: Any,
) -> None:
- kwargs.pop("output_type", None)
- if kwargs.get("require_approval"):
- raise ValueError("require_approval=True is not supported by
LLMSchemaCompareOperator.")
+ kwargs["output_type"] = SchemaCompareResult
+ # execute() always returns a dict, so the approval resume path must too
+ kwargs["serialize_output"] = True
Review Comment:
Fixed. execute_complete now raises ValueError when reviewed output isn't
valid SchemaCompareResult JSON.
--
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]