repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
Mirrored from https://github.com/yingqi-z20/Agent-libOS
stars
latest
clone command
git clone gitlawb://did:key:z6MkqRzA...RfoM/yingqi-z20-Agen...git clone gitlawb://did:key:z6MkqRzA.../yingqi-z20-Agen...d98dd2c9IPC1d ago| #2 |
| #3 | from agent_libos.skills.schema import SkillSpec |
| #4 |
| #5 |
| #6 | class SkillVerifier: |
| #7 | def verify(self, skill: SkillSpec, require_signature: bool = True) -> tuple[bool, list[str]]: |
| #8 | errors: list[str] = [] |
| #9 | if not skill.skill_id: |
| #10 | errors.append("skill_id is required") |
| #11 | if not skill.name: |
| #12 | errors.append("name is required") |
| #13 | if require_signature and not skill.signed: |
| #14 | errors.append("unsigned skill") |
| #15 | return not errors, errors |
| #16 |
| #17 |