feat: fallback handle for skill exception when draft not sync yet

This commit is contained in:
Harry
2026-02-15 02:00:27 +08:00
parent dd8385abf1
commit cb6445a977
3 changed files with 23 additions and 9 deletions

View File

@ -10,3 +10,8 @@ class NodeSkillInfo(BaseModel):
tool_dependencies: list[ToolDependency] = Field(
default_factory=list, description="Tool dependencies extracted from skill prompts"
)
@staticmethod
def empty(node_id: str = "") -> "NodeSkillInfo":
"""Create an empty NodeSkillInfo with no tool dependencies."""
return NodeSkillInfo(node_id=node_id, tool_dependencies=[])