feat(skills): implement API endpoints for retrieving skill references in workflows and add related data models

This commit is contained in:
Harry
2026-01-27 18:44:02 +08:00
parent a4a85f7168
commit 951af125af
5 changed files with 204 additions and 0 deletions

View 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"
)