mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-16 21:54:56 +00:00
feat: skills and agents
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -22,6 +22,7 @@ class Region(str, Enum):
|
||||
class ToolType(str, Enum):
|
||||
MCP_SERVER = "mcp_server"
|
||||
AGENT_SKILL = "agent_skill"
|
||||
CODER_AGENT = "coder_agent"
|
||||
DATABASE_SCRIPT = "database_script"
|
||||
API_FUNCTION = "api_function"
|
||||
|
||||
|
||||
@@ -115,6 +115,8 @@ def parse_agent(agent) -> SyncedTool:
|
||||
"""
|
||||
Parse Agent from SDK into SyncedTool.
|
||||
|
||||
Coder agents (mode='coder') are CODER_AGENT type, not skills.
|
||||
|
||||
Args:
|
||||
agent: Agent from TF SDK
|
||||
|
||||
@@ -125,8 +127,8 @@ def parse_agent(agent) -> SyncedTool:
|
||||
id=agent.id,
|
||||
name=agent.label or f"agent_{agent.id[:8]}",
|
||||
description=agent.description,
|
||||
tool_type=ToolType.AGENT_SKILL,
|
||||
is_agent_skill=True,
|
||||
tool_type=ToolType.CODER_AGENT,
|
||||
is_agent_skill=False,
|
||||
auth_via="tf_agent",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user