Coverage for src / agent / skills / __init__.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2025-12-11 14:30 +0000

1# Copyright 2025-2026 Microsoft Corporation 

2# 

3# Licensed under the Apache License, Version 2.0 (the "License"); 

4# you may not use this file except in compliance with the License. 

5# You may obtain a copy of the License at 

6# 

7# http://www.apache.org/licenses/LICENSE-2.0 

8# 

9# Unless required by applicable law or agreed to in writing, software 

10# distributed under the License is distributed on an "AS IS" BASIS, 

11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 

12# See the License for the specific language governing permissions and 

13# limitations under the License. 

14 

15"""Skill subsystem for osdu-agent. 

16 

17This module provides a plugin system enabling domain-specific capabilities 

18through git-based skill packages. Skills support both: 

19- Structured Python Toolsets: Testable, type-safe tool classes 

20- Standalone PEP 723 Scripts: Context-efficient, progressive disclosure 

21 

22Example: 

23 >>> from agent.skills import SkillLoader 

24 >>> from agent.config import load_config 

25 >>> config = load_config() 

26 >>> loader = SkillLoader(config) 

27 >>> skill_toolsets, script_tools, skill_instructions = loader.load_enabled_skills() 

28""" 

29 

30from agent.skills.errors import ( 

31 SkillDependencyError, 

32 SkillError, 

33 SkillManifestError, 

34 SkillNotFoundError, 

35 SkillSecurityError, 

36) 

37from agent.skills.loader import SkillLoader 

38from agent.skills.manager import SkillManager 

39from agent.skills.registry import SkillRegistry 

40 

41__all__ = [ 

42 "SkillError", 

43 "SkillNotFoundError", 

44 "SkillManifestError", 

45 "SkillDependencyError", 

46 "SkillSecurityError", 

47 "SkillLoader", 

48 "SkillManager", 

49 "SkillRegistry", 

50]