skillnet-ai 0.0.2__py3-none-any.whl → 0.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- skillnet_ai/client.py +2 -2
- skillnet_ai/evaluator.py +2 -2
- {skillnet_ai-0.0.2.dist-info → skillnet_ai-0.0.3.dist-info}/METADATA +23 -15
- {skillnet_ai-0.0.2.dist-info → skillnet_ai-0.0.3.dist-info}/RECORD +8 -8
- {skillnet_ai-0.0.2.dist-info → skillnet_ai-0.0.3.dist-info}/WHEEL +0 -0
- {skillnet_ai-0.0.2.dist-info → skillnet_ai-0.0.3.dist-info}/entry_points.txt +0 -0
- {skillnet_ai-0.0.2.dist-info → skillnet_ai-0.0.3.dist-info}/licenses/LICENSE +0 -0
- {skillnet_ai-0.0.2.dist-info → skillnet_ai-0.0.3.dist-info}/top_level.txt +0 -0
skillnet_ai/client.py
CHANGED
|
@@ -14,9 +14,9 @@ class SkillNetError(Exception):
|
|
|
14
14
|
|
|
15
15
|
class SkillNetClient:
|
|
16
16
|
"""
|
|
17
|
-
A Python SDK client for interacting with SkillNet
|
|
17
|
+
A Python SDK client for interacting with SkillNet services.
|
|
18
18
|
|
|
19
|
-
This client aggregates Search, Download,
|
|
19
|
+
This client aggregates Search, Download, Create, Evaluate, and Analyze functionalities.
|
|
20
20
|
"""
|
|
21
21
|
|
|
22
22
|
def __init__(
|
skillnet_ai/evaluator.py
CHANGED
|
@@ -28,9 +28,9 @@ class EvaluatorConfig:
|
|
|
28
28
|
api_key: str
|
|
29
29
|
base_url: str
|
|
30
30
|
model: str
|
|
31
|
-
cache_dir: str
|
|
32
31
|
max_workers: int = 5
|
|
33
32
|
temperature: float = 0.3
|
|
33
|
+
cache_dir: str = "./evaluate_cache_dir"
|
|
34
34
|
run_scripts: bool = False
|
|
35
35
|
script_timeout_sec: int = 8
|
|
36
36
|
max_script_runs: int = 5
|
|
@@ -898,7 +898,7 @@ if __name__ == '__main__':
|
|
|
898
898
|
parser.add_argument('--base-url', help='OpenAI API base URL')
|
|
899
899
|
parser.add_argument('--model', default='gpt-4o', help='Model name')
|
|
900
900
|
parser.add_argument('--max-workers', type=int, default=5, help='Max workers')
|
|
901
|
-
parser.add_argument('--cache-dir', default='
|
|
901
|
+
parser.add_argument('--cache-dir', default='./evaluate_cache_dir', help='Cache directory')
|
|
902
902
|
parser.add_argument('--run-scripts', action='store_true',
|
|
903
903
|
help='Execute python scripts under scripts/')
|
|
904
904
|
parser.add_argument('--script-timeout', type=int, default=8,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: skillnet-ai
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3
|
|
4
4
|
Summary: Official Python SDK for SkillNet: Create, Evaluate, and Connect AI Skills.
|
|
5
5
|
Author-email: SkillNet Team <liangyuannnnn@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -69,9 +69,9 @@ from skillnet_ai import SkillNetClient
|
|
|
69
69
|
|
|
70
70
|
# Initialize with optional credentials
|
|
71
71
|
client = SkillNetClient(
|
|
72
|
-
api_key="sk-...", # Required for
|
|
73
|
-
base_url="...", # Optional custom LLM base URL
|
|
74
|
-
github_token="ghp-..." # Optional, for private repos or higher rate limits
|
|
72
|
+
api_key="sk-...", # Required for Create, Evaluate, and Analyze functions
|
|
73
|
+
# base_url="...", # Optional custom LLM base URL
|
|
74
|
+
# github_token="ghp-..." # Optional, for private repos or higher rate limits
|
|
75
75
|
)
|
|
76
76
|
```
|
|
77
77
|
|
|
@@ -80,7 +80,7 @@ Perform keywords match or semantic searches to find skills.
|
|
|
80
80
|
|
|
81
81
|
```python
|
|
82
82
|
# 1. Standard Keywords Match
|
|
83
|
-
results = client.search(q="pdf
|
|
83
|
+
results = client.search(q="pdf")
|
|
84
84
|
|
|
85
85
|
# 2. Semantic Search
|
|
86
86
|
results = client.search(q="Help me analyze financial PDF reports", mode="vector")
|
|
@@ -184,7 +184,7 @@ Assess the Safety, Completeness, Executability, Modifiability and Cost-Aware of
|
|
|
184
184
|
# target_skill = "./my_skills/web_search"
|
|
185
185
|
|
|
186
186
|
# Evaluate from GitHub URL (uses github_token if provided during initialization)
|
|
187
|
-
target_skill = "https://github.com/
|
|
187
|
+
target_skill = "https://github.com/anthropics/skills/tree/main/skills/algorithmic-art"
|
|
188
188
|
|
|
189
189
|
result = client.evaluate(target=target_skill)
|
|
190
190
|
print(f"Evaluation Result: {result}")
|
|
@@ -221,13 +221,13 @@ Search the registry using keywords match or semantic search.
|
|
|
221
221
|
|
|
222
222
|
```bash
|
|
223
223
|
# Basic keywords match
|
|
224
|
-
skillnet search "pdf
|
|
224
|
+
skillnet search "pdf"
|
|
225
225
|
|
|
226
226
|
# Semantic/Vector search (finds skills by meaning)
|
|
227
|
-
skillnet search "
|
|
227
|
+
skillnet search "Help me analyze financial PDF reports" --mode vector --threshold 0.85
|
|
228
228
|
|
|
229
229
|
# Filter by category and sort results
|
|
230
|
-
skillnet search "visualization" --category "
|
|
230
|
+
skillnet search "visualization" --category "Development" --sort-by stars --limit 10
|
|
231
231
|
```
|
|
232
232
|
|
|
233
233
|
#### Key Options:
|
|
@@ -265,9 +265,12 @@ skillnet download <private_url> --token <your_github_token>
|
|
|
265
265
|
|
|
266
266
|
Generate structured Skill Packages from various sources using LLMs.
|
|
267
267
|
|
|
268
|
-
Requirement: Ensure API_KEY is set in your environment variables.
|
|
269
|
-
|
|
270
268
|
```bash
|
|
269
|
+
# Requirement: Ensure API_KEY is set in your environment variables.
|
|
270
|
+
export API_KEY=sk-xxxxx
|
|
271
|
+
export BASE_URL= xxxxxx # Optional custom LLM base URL
|
|
272
|
+
|
|
273
|
+
|
|
271
274
|
# From a trajectory file
|
|
272
275
|
skillnet create ./logs/trajectory.txt -d ./generated_skills
|
|
273
276
|
|
|
@@ -287,9 +290,11 @@ skillnet create --office report.pdf --model gpt-4o
|
|
|
287
290
|
### 4. Evaluate Skills (`evaluate`)
|
|
288
291
|
Generate a comprehensive quality report (Safety, Completeness, Executability, Modifiability, Cost Awareness) for a skill.
|
|
289
292
|
|
|
290
|
-
Requirement: Ensure API_KEY is set in your environment variables.
|
|
291
|
-
|
|
292
293
|
```bash
|
|
294
|
+
# Requirement: Ensure API_KEY is set in your environment variables.
|
|
295
|
+
export API_KEY=sk-xxxxx
|
|
296
|
+
export BASE_URL= xxxxxx # Optional custom LLM base URL
|
|
297
|
+
|
|
293
298
|
# Evaluate a remote skill via GitHub URL
|
|
294
299
|
skillnet evaluate https://github.com/owner/repo/tree/main/skills/web_search
|
|
295
300
|
|
|
@@ -297,15 +302,18 @@ skillnet evaluate https://github.com/owner/repo/tree/main/skills/web_search
|
|
|
297
302
|
skillnet evaluate ./my_skills/web_search
|
|
298
303
|
|
|
299
304
|
# Custom evaluation config
|
|
300
|
-
skillnet evaluate ./my_skills/tool --category "
|
|
305
|
+
skillnet evaluate ./my_skills/tool --category "Development" --model gpt-4o
|
|
301
306
|
```
|
|
302
307
|
|
|
303
308
|
### 5. Analyze Relationships (`analyze`)
|
|
304
309
|
Scan a directory of skills to analyze their connections using AI.
|
|
305
310
|
|
|
306
|
-
Requirement: Ensure API_KEY is set in your environment variables.
|
|
307
311
|
|
|
308
312
|
```bash
|
|
313
|
+
# Requirement: Ensure API_KEY is set in your environment variables.
|
|
314
|
+
export API_KEY=sk-xxxxx
|
|
315
|
+
export BASE_URL= xxxxxx # Optional custom LLM base URL
|
|
316
|
+
|
|
309
317
|
# Analyze a directory containing multiple skill folders
|
|
310
318
|
skillnet analyze ./my_agent_skills
|
|
311
319
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
skillnet_ai/__init__.py,sha256=XHPu6MRZrQEG3hfcujOYPAY2HNo0tVWiFLh7Pg8BZ7M,625
|
|
2
2
|
skillnet_ai/analyzer.py,sha256=xwO80FVArqrw_z7NzIjV_t48cu29JhYcJ1Kj0DhJB-0,8705
|
|
3
3
|
skillnet_ai/cli.py,sha256=NiQGds5ej02bxfghyeELXzWl4NQOsovkl0kwePCJE3g,24313
|
|
4
|
-
skillnet_ai/client.py,sha256=
|
|
4
|
+
skillnet_ai/client.py,sha256=1vKuBUQMCSAybYddsuXlkix3sGW1KD-gqeFuTcVuzHM,11491
|
|
5
5
|
skillnet_ai/creator.py,sha256=srJn_sV7mDWwTb1AG9QrXf2fDeA5pGBUCDXIYxkdQk0,39130
|
|
6
6
|
skillnet_ai/downloader.py,sha256=egP7b1ovL4pbNuAqn8y17-6YseyPpJzWlJAohH9XeWE,6358
|
|
7
|
-
skillnet_ai/evaluator.py,sha256=
|
|
7
|
+
skillnet_ai/evaluator.py,sha256=_x_9ijlF_R-doK2kiyIpRfVSdwQ2rly7seDXGmGNwpE,36446
|
|
8
8
|
skillnet_ai/models.py,sha256=2af5PnXhkzhRKUUc02KMr5U77KbhlTyxSlJETmWdmZY,1162
|
|
9
9
|
skillnet_ai/prompts.py,sha256=afxSxV9b_UPhTCQdahgCAnQoRVwMNweOmT3r9aVwxY0,40377
|
|
10
10
|
skillnet_ai/searcher.py,sha256=MvinkWR8omSCMXKSdZTSBBsifxQ13ep4hpnd4ql2w7U,3170
|
|
11
|
-
skillnet_ai-0.0.
|
|
12
|
-
skillnet_ai-0.0.
|
|
13
|
-
skillnet_ai-0.0.
|
|
14
|
-
skillnet_ai-0.0.
|
|
15
|
-
skillnet_ai-0.0.
|
|
16
|
-
skillnet_ai-0.0.
|
|
11
|
+
skillnet_ai-0.0.3.dist-info/licenses/LICENSE,sha256=N5w66QPiGia1KA-Drt_75rmKLsyVt5GJUu-j6Gxpihs,1063
|
|
12
|
+
skillnet_ai-0.0.3.dist-info/METADATA,sha256=IM57dFLy-k3NKMgjT3YJMh4h9tNcoovsXR6DSr0hK6M,12704
|
|
13
|
+
skillnet_ai-0.0.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
14
|
+
skillnet_ai-0.0.3.dist-info/entry_points.txt,sha256=8JDzqrJcxks90e4ifiivf2KNeGMGLW-f7nRNi_f1bQQ,49
|
|
15
|
+
skillnet_ai-0.0.3.dist-info/top_level.txt,sha256=0gHowx1tlCRYxEbdoQcH4nPoMZGWUAUX6wjSNv3VUoI,12
|
|
16
|
+
skillnet_ai-0.0.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|