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)
| 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 | """ |
no outgoing calls
no test coverage detected