/admin/gateway/servicesAICADE_GALAXY_API_KEY, X-API-Key, responsePaths, or --args-file workThis skill uses these environment variables in .env:
AICADE_GALAXY_BASE_URLAICADE_GALAXY_API_KEYAICADE_GALAXY_OUTPUT_PATHAuthentication rule:
X-API-KeyAICADE_GALAXY_API_KEYThis skill has three main actions:
.envaicade-galaxy-skill.jsonRuntime selection rule:
node firstnode is unavailable, use python3Suggested runtime checks:
node --version
python3 --version
If .env is missing or incomplete, run:
node {baseDir}/scripts/setup_env.mjs
Fallback when node is unavailable:
python3 {baseDir}/scripts/setup_env.py
This initializes:
AICADE_GALAXY_BASE_URLAICADE_GALAXY_API_KEYAICADE_GALAXY_OUTPUT_PATHRecommended default output directory:
outputTo export the current dynamic services, run:
node {baseDir}/scripts/export_artifact.mjs
Fallback when node is unavailable:
python3 {baseDir}/scripts/export_artifact.py
The exported artifact path is:
{AICADE_GALAXY_OUTPUT_PATH}/aicade-galaxy-skill.json
Default output directory:
output
Use the exported artifact together with an args file:
node {baseDir}/scripts/invoke_artifact.mjs --artifact {AICADE_GALAXY_OUTPUT_PATH}/aicade-galaxy-skill.json --tool TOOL_NAME --args-file /tmp/invoke.json
Fallback when node is unavailable:
python3 {baseDir}/scripts/invoke_artifact.py --artifact {AICADE_GALAXY_OUTPUT_PATH}/aicade-galaxy-skill.json --tool TOOL_NAME --args-file /tmp/invoke.json
The args file must contain a JSON object, for example:
{
"city": "北京",
"responsePaths": ["reason", "error_code"]
}
Invoker behavior:
name--args-fileinputSchemamethod, path, and authentication metadataNormalized output shape:
{"ok": true, "status": 200, "tool": "...", "serviceId": "...", "data": ..., "raw": ...}
{"ok": false, "status": 4xx/5xx, "tool": "...", "serviceId": "...", "error": {"message": "...", "raw": ...}}
.env if needed:```bash
node {baseDir}/scripts/setup_env.mjs
```
```bash
node {baseDir}/scripts/export_artifact.mjs
```
{AICADE_GALAXY_OUTPUT_PATH}/aicade-galaxy-skill.json and summarize or validate the generated tools.If node is not available, use these fallback commands instead:
python3 {baseDir}/scripts/setup_env.py
python3 {baseDir}/scripts/export_artifact.py
```json
{
"city": "北京",
"responsePaths": ["reason", "error_code"]
}
```
```bash
node {baseDir}/scripts/invoke_artifact.mjs --artifact {AICADE_GALAXY_OUTPUT_PATH}/aicade-galaxy-skill.json --tool simple_weather --args-file /tmp/invoke.json
```
If the user asks how to return only part of a JSON response:
responsePaths["city", "weather"]["received.prompt"]GET services use query parametersPOST services use JSON request bodiesGET /admin/gateway/servicesUse responsePaths when the caller wants only part of the JSON response.
["city", "weather"]["received.prompt"]["result.realtime.temperature", "result.city"]Behavior:
scripts/setup_env.mjs: preferred interactive .env setup for Node hostsscripts/export_artifact.mjs: preferred artifact export for Node hostsscripts/invoke_artifact.mjs: preferred standalone artifact invoker for Node hostsscripts/setup_env.py: interactive .env setupscripts/export_artifact.py: export dynamic services into a reusable skill artifactscripts/invoke_artifact.py: standalone artifact invoker for Python hosts.env values rather than hardcoding endpoints or keysnode scripts/.mjs first, then fall back to python3 scripts/.pynode nor python3 is available, tell the user to install Node.jsnode scripts/export_artifact.mjs or python3 scripts/export_artifact.py can generate itscripts/invoke_artifact.mjs or scripts/invoke_artifact.py can invoke the tool from artifact metadata--args-file as a JSON object401 or 403, check AICADE_GALAXY_API_KEY first共 1 个版本