feat: 添加判断修改范围、规划和资源需求节点

This commit is contained in:
2026-09-23 16:51:10 +08:00
parent 5ef873bfe9
commit 5f5d733a9b
11 changed files with 566 additions and 1 deletions
+13
View File
@@ -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