build_task_spec(
*,
output_schema: Union[type[BaseModel], dict[str, Any], str],
input_schema: Build a TaskSpecParam dict from pydantic classes / schemas / text.
Mirrors the helper used in https://docs.parallel.ai/task-api/examples/task-enrichment.