14 lines
380 B
Python
14 lines
380 B
Python
"""动作校验错误,供后续修正节点使用"""
|
|
|
|
from typing import Literal
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class ActionValidationError(BaseModel):
|
|
action_index: int | None = Field(
|
|
default=None, ge=0, description="失败动作的下标,从 0 开始,整批错误为 null"
|
|
)
|
|
code: Literal["schema_error", "execution_error"]
|
|
message: str
|