guan404ming commented on code in PR #71051: URL: https://github.com/apache/airflow/pull/71051#discussion_r3754846187
########## providers/common/ai/docs/operators/llm_schema_compare.rst: ########## @@ -114,6 +114,23 @@ The callable may also return a non-empty ``Sequence[UserContent]`` for multimodal inputs -- see :ref:`@task.agent multimodal prompts <howto/operator:agent-multimodal>`. +Human-in-the-Loop Approval +-------------------------- + +Set ``require_approval=True`` to pause the task after the comparison and wait +for a human reviewer to approve the result before it is returned. The review +body shows the compatibility verdict, a mismatch severity summary, and the +full result JSON. Rejecting the review, or letting ``approval_timeout`` +expire, fails the task: + +.. exampleinclude:: /../../ai/src/airflow/providers/common/ai/example_dags/example_llm_schema_compare.py + :language: python + :start-after: [START howto_operator_llm_schema_compare_approval] + :end-before: [END howto_operator_llm_schema_compare_approval] + +``approval_timeout``, ``allow_modifications``, and the rest of the approval Review Comment: Make sense to me. Added the same string-prompt note to llm_schema_compare.rst. -- 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]
