mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-19 23:24:42 +00:00
feat: skills and agents
This commit is contained in:
@@ -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