shu/add_workflow_runs_api (#2063)

This commit is contained in:
Shuchang Zheng
2025-04-01 15:52:35 -04:00
committed by GitHub
parent f774135049
commit e26b816f67
7 changed files with 166 additions and 51 deletions

View File

@@ -5,6 +5,7 @@ from zoneinfo import ZoneInfo
from pydantic import BaseModel, Field, field_validator
from skyvern.forge.sdk.schemas.files import FileInfo
from skyvern.utils.url_validators import validate_url
@@ -206,6 +207,8 @@ class BaseRunResponse(BaseModel):
output: dict | list | str | None = Field(
default=None, description="Output data from the run, if any. Format depends on the schema in the input"
)
downloaded_files: list[FileInfo] | None = Field(default=None, description="List of files downloaded during the run")
recording_url: str | None = Field(default=None, description="URL to the recording of the run")
failure_reason: str | None = Field(default=None, description="Reason for failure if the run failed")
created_at: datetime = Field(description="Timestamp when this run was created")
modified_at: datetime = Field(description="Timestamp when this run was last modified")