fix(skill): 回退 description 截断缩短,文本精炼应统一在技能文件本身做
This commit is contained in:
parent
a40afccca3
commit
cc1cd84fae
@ -312,7 +312,7 @@ class SkillLoader:
|
|||||||
return ""
|
return ""
|
||||||
blocks = ["## 可用技能\n"]
|
blocks = ["## 可用技能\n"]
|
||||||
for s in skills:
|
for s in skills:
|
||||||
blocks.append(f"- **[{SCOPE_TAG.get(s.scope, s.scope)}] {s.name}**: {s.description[:80]}")
|
blocks.append(f"- **[{SCOPE_TAG.get(s.scope, s.scope)}] {s.name}**: {s.description[:200]}")
|
||||||
blocks.append("")
|
blocks.append("")
|
||||||
return "\n".join(blocks)
|
return "\n".join(blocks)
|
||||||
|
|
||||||
@ -390,7 +390,7 @@ class SkillLoader:
|
|||||||
|
|
||||||
blocks = ["## 可用技能\n"]
|
blocks = ["## 可用技能\n"]
|
||||||
for s in skills:
|
for s in skills:
|
||||||
blocks.append(f"- **[{SCOPE_TAG.get(s.scope, s.scope)}] {s.name}**: {s.description[:80]}")
|
blocks.append(f"- **[{SCOPE_TAG.get(s.scope, s.scope)}] {s.name}**: {s.description[:200]}")
|
||||||
blocks.append("")
|
blocks.append("")
|
||||||
return "\n".join(blocks)
|
return "\n".join(blocks)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user