FrankYang0529 commented on issue #74459:
URL: https://github.com/apache/airflow/issues/74459#issuecomment-6098620776

   common.ai 0.11.0rc1 has one more regression.
   
   - #73904: With `enable_hitl_review=True`, an `AgentOperator` task now 
converts the approved answer with a pydantic `TypeAdapter` built from 
`output_type`. Following cases have different behavior from previous version. I 
create #74537 to fix it.
       - `output_type=[Verdict, Other]` (a list of output types): on 0.10.0 the 
task returns a dict. On 0.11.0rc1 the task fails after the approval with 
`PydanticSchemaGenerationError`.
       - `output_type=ToolOutput(Verdict)` (an output marker): on 0.10.0 the 
task returns a dict. On 0.11.0rc1 the task fails after the approval with 
`AttributeError`.
       - An output function: on 0.10.0 the function runs once. On 0.11.0rc1 it 
runs again after the approval, so any side effect in the function happens twice.


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