revert job related

This commit is contained in:
Xi Yan 2025-03-17 17:12:28 -07:00
parent 452b2b1284
commit ade3391170
2 changed files with 11 additions and 11 deletions

View file

@ -12,6 +12,12 @@ from pydantic import BaseModel
from llama_stack.schema_utils import json_schema_type
@json_schema_type
class Job(BaseModel):
# NOTE: this will be DEPRECATED in favour of CommonJobFields
job_id: str
class JobType(Enum):
batch_inference = "batch_inference"
evaluation = "evaluation"
@ -26,14 +32,6 @@ class JobStatus(Enum):
cancelled = "cancelled"
class JobArtifact(BaseModel):
"""
A job artifact is a file or directory that is produced by a job.
"""
path: str
@json_schema_type
class CommonJobFields(BaseModel):
"""Common fields for all jobs.