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

@@ -1,4 +1,13 @@
from pydantic import BaseModel
from pydantic import BaseModel, Field
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 SkyvernDefinedError(BaseModel):