mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
fix(tools): enforce 60-char description limit for skills
MAX_DESCRIPTION_LENGTH was set to 1024, but the documented skill- authoring standard specifies <=60 characters. The model generates descriptions up to 202 chars because the validation allows 1024. Lower MAX_DESCRIPTION_LENGTH from 1024 to 60 to match the documented standard. The system-prompt skill index already truncates to 60 chars, so over-length descriptions lose their routing signal past char 60. Fixes #52367
This commit is contained in:
parent
9457a90198
commit
0a262b7dbf
2 changed files with 2 additions and 2 deletions
|
|
@ -174,7 +174,7 @@ def _skills_dir() -> Path:
|
|||
return get_hermes_home() / "skills"
|
||||
|
||||
MAX_NAME_LENGTH = 64
|
||||
MAX_DESCRIPTION_LENGTH = 1024
|
||||
MAX_DESCRIPTION_LENGTH = 60
|
||||
|
||||
|
||||
def _containing_skills_root(skill_path: Path) -> Path:
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ def _skills_dir() -> Path:
|
|||
|
||||
# Anthropic-recommended limits for progressive disclosure efficiency
|
||||
MAX_NAME_LENGTH = 64
|
||||
MAX_DESCRIPTION_LENGTH = 1024
|
||||
MAX_DESCRIPTION_LENGTH = 60
|
||||
|
||||
# Platform identifiers for the 'platforms' frontmatter field.
|
||||
# Maps user-friendly names to sys.platform prefixes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue