forked from ARPAHLS/skillware
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathskill.py
More file actions
27 lines (22 loc) · 833 Bytes
/
Copy pathskill.py
File metadata and controls
27 lines (22 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from typing import Any, Dict
from skillware.core.base_skill import BaseSkill
class MyAwesomeSkill(BaseSkill):
@property
def manifest(self) -> Dict[str, Any]:
"""
Returns the skill's manifest. In a production skill,
you can load this from manifest.yaml using SkillLoader.
"""
return {
"name": "my-awesome-skill",
"version": "0.1.0",
"description": "A short description of what this skill does.",
}
def execute(self, params: Dict[str, Any]) -> Dict[str, Any]:
"""
The main execution logic for the skill.
Expects 'param1' in params as defined in manifest.yaml.
"""
param1 = params.get("param1", "default")
# Implement your logic here
return {"result": f"Executed with {param1}"}