MCPcopy Create free account
hub / github.com/modelscope/ms-agent / _get_skill_key

Method _get_skill_key

ms_agent/skill/loader.py:163–173  ·  view source on GitHub ↗

Generate a unique key for a skill based on its ID and version. Args: skill: SkillSchema object Returns: Unique skill key in the format 'skill_id@version'

(skill: SkillSchema)

Source from the content-addressed store, hash-verified

161
162 @staticmethod
163 def _get_skill_key(skill: SkillSchema):
164 """
165 Generate a unique key for a skill based on its ID and version.
166
167 Args:
168 skill: SkillSchema object
169
170 Returns:
171 Unique skill key in the format 'skill_id@version'
172 """
173 return f'{skill.skill_id}@{skill.version}'
174
175 def get_skill(self, skill_key: str) -> Optional[SkillSchema]:
176 """

Callers 3

load_skillsMethod · 0.95
_scan_and_load_skillsMethod · 0.95
reload_skillMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected