@Bilal_Ahmad Set the output_pydantic to True to the task. See the official docs.
output_pydantic
True