generate error failure when summary failure reason (#3395)

This commit is contained in:
LawyZheng
2025-09-10 02:03:00 +08:00
committed by GitHub
parent 4411ef00fe
commit ceec64d201
7 changed files with 60 additions and 26 deletions

View File

@@ -6,6 +6,7 @@ import structlog
from litellm import ConfigDict
from pydantic import BaseModel, Field
from skyvern.errors.errors import UserDefinedError
from skyvern.webeye.actions.action_types import ActionType
LOG = structlog.get_logger()
@@ -19,15 +20,6 @@ class ActionStatus(StrEnum):
completed = "completed"
class UserDefinedError(BaseModel):
error_code: str
reasoning: str
confidence_float: float = Field(..., ge=0, le=1)
def __repr__(self) -> str:
return f"{self.reasoning}(error_code={self.error_code}, confidence_float={self.confidence_float})"
class SelectOption(BaseModel):
label: str | None = None
value: str | None = None