WorkflowCodeDefinition
June 16, 2026 ยท View on GitHub
Fields
| Field | Type | Required | Description |
|---|---|---|---|
input_schema | Dict[str, Any] | :heavy_check_mark: | Input schema of the workflow's run method |
output_schema | Dict[str, Any] | :heavy_minus_sign: | Output schema of the workflow's run method |
signals | List[models.SignalDefinition] | :heavy_minus_sign: | Signal handlers defined by the workflow |
queries | List[models.QueryDefinition] | :heavy_minus_sign: | Query handlers defined by the workflow |
updates | List[models.UpdateDefinition] | :heavy_minus_sign: | Update handlers defined by the workflow |
enforce_determinism | Optional[bool] | :heavy_minus_sign: | Whether the workflow enforces deterministic execution |
on_behalf_of | Optional[bool] | :heavy_minus_sign: | Whether the workflow must run associated to a user's identity |
execution_timeout | Optional[float] | :heavy_minus_sign: | Maximum total execution time including retries and continue-as-new |
plugin_metadata | Dict[str, Any] | :heavy_minus_sign: | Plugin-specific metadata (e.g. connector declarations) |