feat: add workflow output comparison tooling
This commit is contained in:
@@ -188,3 +188,28 @@ class WorkflowRunOut(BaseModel):
|
||||
created_at: datetime
|
||||
node_results: list[WorkflowNodeResultOut] = []
|
||||
model_config = {"from_attributes": True}
|
||||
|
||||
|
||||
class WorkflowComparisonArtifactOut(BaseModel):
|
||||
path: str | None
|
||||
storage_key: str | None
|
||||
exists: bool
|
||||
file_size_bytes: int | None
|
||||
sha256: str | None
|
||||
mime_type: str | None
|
||||
image_width: int | None
|
||||
image_height: int | None
|
||||
|
||||
|
||||
class WorkflowRunComparisonOut(BaseModel):
|
||||
workflow_run_id: uuid.UUID
|
||||
workflow_def_id: uuid.UUID | None
|
||||
order_line_id: uuid.UUID | None
|
||||
execution_mode: str
|
||||
status: str
|
||||
summary: str
|
||||
authoritative_output: WorkflowComparisonArtifactOut
|
||||
observer_output: WorkflowComparisonArtifactOut
|
||||
exact_match: bool | None
|
||||
dimensions_match: bool | None
|
||||
mean_pixel_delta: float | None
|
||||
|
||||
Reference in New Issue
Block a user