Endpoint to generate a task from a natural language instruction and a list of API specifications.
Args: payload (TaskGenerate): The input containing:
instruction (str): Natural language prompt describing the intended task.specs (List[str]): API spec names to consider when generating the task.Returns: TaskCreate: A structured task object (not persisted), including task name, actions, and metadata.
Raises: HTTPException 500: If an error occurs during the generation process.
JWT Authorization header using the Bearer scheme. Example: 'Authorization: Bearer {token}'
Successful Response
The Task name.
Task visibility: 'private' (default) or 'public'
private, public The initial user input for the task, default is None
Optional schedule information for the task
Task state: 'enabled' (default) or 'disabled'
disabled, enabled Task category