mirror of
https://github.com/langgenius/dify.git
synced 2026-03-16 04:17:43 +08:00
17 lines
512 B
Python
17 lines
512 B
Python
from pydantic import BaseModel, Field
|
|
|
|
from core.skill.entities.tool_dependencies import ToolDependency
|
|
|
|
|
|
class NodeSkillInfo(BaseModel):
|
|
"""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"
|
|
)
|