mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
refactor: async skill compile and context sharing
This commit is contained in:
@ -4,14 +4,13 @@ from core.skill.entities.tool_dependencies import ToolDependency
|
||||
|
||||
|
||||
class NodeSkillInfo(BaseModel):
|
||||
"""Information about skills referenced by a workflow node."""
|
||||
"""Information about skills referenced by a workflow node.
|
||||
|
||||
Used by the whole-workflow skills endpoint to return per-node
|
||||
tool dependency information.
|
||||
"""
|
||||
|
||||
node_id: str = Field(description="The node ID")
|
||||
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