Update auf Skills
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
import json, sys
|
||||
req=json.load(sys.stdin)
|
||||
text=str(req.get("input",{}).get("text",""))
|
||||
json.dump({"protocol":"jarvis.skill.invoke.v1","success":True,"data":{"text":text.upper()},"message":"Text verarbeitet."},sys.stdout)
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"protocol": "jarvis.skill.v1",
|
||||
"id": "example.python.text",
|
||||
"name": "Python Text Example",
|
||||
"version": "1.0.0",
|
||||
"description": "Beispiel für einen Remote-Python-Skill im Skill Mesh.",
|
||||
"runtime": {
|
||||
"type": "process",
|
||||
"command": "python3",
|
||||
"args": ["main.py"],
|
||||
"timeout_ms": 5000
|
||||
},
|
||||
"permissions": {"system_exec": true},
|
||||
"actions": [{
|
||||
"name": "uppercase",
|
||||
"description": "Wandelt Text in Großbuchstaben um.",
|
||||
"triggers": ["großbuchstaben", "uppercase"],
|
||||
"input_schema": {
|
||||
"type": "object",
|
||||
"properties": {"text": {"type": "string"}},
|
||||
"required": ["text"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"output_schema": {
|
||||
"type": "object",
|
||||
"properties": {"text": {"type": "string"}},
|
||||
"required": ["text"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}]
|
||||
}
|
||||
Reference in New Issue
Block a user