Validate task data format
(self, task_data: Dict[str, Any])
| 74 | return content |
| 75 | |
| 76 | def _validate_task(self, task_data: Dict[str, Any]) -> None: |
| 77 | """Validate task data format""" |
| 78 | required_fields = ["name", "goal", "workflow"] |
| 79 | for field in required_fields: |
| 80 | if field not in task_data: |
| 81 | raise ValueError(f"Missing required field: {field}") |
| 82 | |
| 83 | if not isinstance(task_data["workflow"], list): |
| 84 | raise ValueError("Workflow must be a list of steps") |
| 85 | |
| 86 | def has_config(self, task_data: Dict[str, Any]) -> bool: |
| 87 | """ |
no outgoing calls