mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
feat(skills): implement API endpoints for retrieving skill references in workflows and add related data models
This commit is contained in:
12
api/core/skill/entities/api_entities.py
Normal file
12
api/core/skill/entities/api_entities.py
Normal file
@ -0,0 +1,12 @@
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
from core.skill.entities.tool_dependencies import ToolDependency
|
||||
|
||||
|
||||
class NodeSkillInfo(BaseModel):
|
||||
"""Information about skills referenced by a workflow node."""
|
||||
|
||||
node_id: str = Field(description="The node ID")
|
||||
tool_dependencies: list[ToolDependency] = Field(
|
||||
default_factory=list, description="Tool dependencies extracted from skill prompts"
|
||||
)
|
||||
Reference in New Issue
Block a user