Merge remote-tracking branch 'origin/ji' into ji

This commit is contained in:
吉鑫升 committed 2026-06-03 19:01:56 +08:00
commit aeef1dca59
2 files changed
+6 -2

No files matched your search

@@ -27,7 +27,7 @@ def setup_agent(
description: One-line description of what the agent does.
name: Optional human-readable display name for the agent. If omitted,
the agent's stable id is used as the display name.
skills: Optional list of skill names this agent should use. None or empty means no skills.
skills: Optional list of skill names this agent should use. None or empty means no skills. Maximum 5 skills allowed.
"""
agent_name: str | None = (runtime.context.get("agent_id") or runtime.context.get("agent_name")) if runtime.context else None
@@ -48,7 +48,7 @@ def setup_agent(
if description:
config_data["description"] = description
if skills is not None:
config_data["skills"] = skills
config_data["skills"] = skills[:5]
config_file = agent_dir / "config.yaml"
with open(config_file, "w", encoding="utf-8") as f: