cayu.tasks.TaskCreate
Part of cayu.tasks.base. Read the Python API overview and install the required extra.
from cayu.tasks import TaskCreateBases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
task_id |
str | None |
None |
type |
str |
required |
title |
str | None |
None |
description |
str | None |
None |
session_id |
str | None |
None |
parent_task_id |
str | None |
None |
assigned_agent_name |
str | None |
None |
available_at |
datetime | None |
None |
schedule_policy |
TaskSchedulePolicy | None |
None |
input |
dict[str, Any] |
Field(default_factory=dict) |
metadata |
dict[str, Any] |
Field(default_factory=dict) |
retry_policy |
TaskRetryPolicy | None |
None |
work_contract |
WorkContractRef | None |
None |
invocation_origin |
InvocationOriginClaim | None |
None |
copy_schedule_policy (method)
Section titled “copy_schedule_policy (method)”TaskCreate.copy_schedule_policy(value: object) -> objectvalidate_schedule (method)
Section titled “validate_schedule (method)”TaskCreate.validate_schedule() -> TaskCreatepreflight_work_contract_payloads (method)
Section titled “preflight_work_contract_payloads (method)”TaskCreate.preflight_work_contract_payloads(value: object) -> objectcopy_json_object (method)
Section titled “copy_json_object (method)”TaskCreate.copy_json_object(value: dict[str, Any], info) -> dict[str, Any]validate_nonblank_type (method)
Section titled “validate_nonblank_type (method)”TaskCreate.validate_nonblank_type(value: str, info) -> strvalidate_optional_nonblank_strings (method)
Section titled “validate_optional_nonblank_strings (method)”TaskCreate.validate_optional_nonblank_strings(value: str | None, info) -> str | Nonenormalize_available_at (method)
Section titled “normalize_available_at (method)”TaskCreate.normalize_available_at(value: datetime | None) -> datetime | Nonecopy_work_contract (method)
Section titled “copy_work_contract (method)”TaskCreate.copy_work_contract(value: object) -> objectvalidate_retry_and_work_contract_shape (method)
Section titled “validate_retry_and_work_contract_shape (method)”TaskCreate.validate_retry_and_work_contract_shape() -> TaskCreate