feat: 添加判断修改范围、规划和资源需求节点
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
"""动作校验错误,供后续修正节点使用"""
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user