result_type specifies the Python value a task should produce. It defaults to str and can be a scalar, collection, dataclass, Pydantic model, or set of classification labels.
Structured values
Classification
Pass labels, aLiteral, or an enum to constrain the result:
Custom validation
Aresult_validator must return the value to store or raise an exception to reject it. It replaces the task’s ordinary result-validation path, so it must perform any validation or conversion your application needs.
result_type=None. See running tasks for task states and failure handling.