Spaces:
Running
Running
File size: 565 Bytes
9aaf513 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from pydantic import BaseModel, Field, validator
from typing import List, Any, Optional
from backend.db.task.models import TaskStatus, ResultType, TaskType
class QueueResponse(BaseModel):
identifier: str = Field(..., description="Unique identifier for the queued task that can be used for tracking")
status: TaskStatus = Field(..., description="Current status of the task")
message: str = Field(..., description="Message providing additional information about the task")
class Response(BaseModel):
identifier: str
message: str
|