mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
17 lines
483 B
Python
17 lines
483 B
Python
from uuid import UUID
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
|
class SubtaskTriggerBody(BaseModel):
|
|
"""The minimum the subtask_handler needs to dispatch lifecycle calls.
|
|
|
|
`extra="allow"` so the rest of the work payload passes through to the
|
|
decorated function untouched — handlers do their own model_validate on
|
|
the full body for fields specific to their use case.
|
|
"""
|
|
|
|
model_config = ConfigDict(extra="allow")
|
|
|
|
task_id: UUID
|
|
sub_task_id: UUID
|