Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ai
/
ai-workflow
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9f2bd549
authored
May 26, 2026
by
sunqi02
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(agent_hub): 添加日志记录以跟踪技能目录扫描和代理工具包构建过程
1 parent
0f91b047
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
workspace/agent-admin/backend/app/service/agent_hub.py
workspace/agent-admin/backend/app/service/agent_hub.py
View file @
9f2bd54
...
...
@@ -119,6 +119,7 @@ class AgentHub:
# Register all skills from skills/ directory to Toolkit
skills_dir
=
Path
(
__file__
)
.
parent
.
parent
.
parent
/
"skills"
logger
.
info
(
f
"扫描 skills 目录并注册到全局 Toolkit: {skills_dir}"
)
for
skill_entry
in
sorted
(
skills_dir
.
iterdir
()):
if
skill_entry
.
is_dir
()
and
not
skill_entry
.
name
.
startswith
(
'.'
):
skill_md
=
skill_entry
/
"SKILL.md"
...
...
@@ -162,6 +163,7 @@ class AgentHub:
# 构建每个 agent 的专属 toolkit(按 skills 字段过滤)
self
.
agent_toolkits
:
Dict
[
str
,
Toolkit
]
=
{}
for
agent_code
,
agent_config
in
self
.
agents
.
items
():
logger
.
info
(
f
"构建 agent '{agent_code}' 的专属 Toolkit (skills: {agent_config.skills})"
)
agent_tk
=
Toolkit
()
# 复制 basic 组工具(所有 agent 共用)
for
name
,
tool
in
self
.
toolkit
.
tools
.
items
():
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment