mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 17:38:04 +08:00
feat: fallback handle for skill exception when draft not sync yet
This commit is contained in:
@ -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=[])
|
||||
|
||||
Reference in New Issue
Block a user