Skip to main content

通用 Skills Runtime SDK(Python)最小可测骨架(M1)

Project description

Skills Runtime SDK (Python)

This folder contains the Python SDK reference implementation of Skills Runtime.

If you want the fastest “end-to-end” experience (Runs + SSE + approvals + sandbox + skills management), start from the repo root README.md and run the Studio MVP.

Install (PyPI)

PyPI package name: skills-runtime-sdk (Python >=3.10).

python -m pip install -U skills-runtime-sdk

Optional extras (skills sources):

python -m pip install -U "skills-runtime-sdk[redis]"
python -m pip install -U "skills-runtime-sdk[pgsql]"
python -m pip install -U "skills-runtime-sdk[all]"

Note: the import name is skills_runtime (package name differs from module name).

Dev & tests

From this directory:

  • Editable install:
    • python -m pip install -e ".[dev]"
  • Run tests:
    • pytest -q
  • Quick import check:
    • python -c "import skills_runtime; print(skills_runtime.__version__)"

If you hit UnicodeDecodeError on some machines due to locale/encoding, try:

  • LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 python ...

Local config files

1) API key (local only)

  1. Copy:
    • packages/skills-runtime-sdk-python/.env.examplepackages/skills-runtime-sdk-python/.env
  2. Edit .env:
    • OPENAI_API_KEY=...

Do not commit .env (it is ignored).

2) Base URL / model names

  1. Copy:
    • packages/skills-runtime-sdk-python/config/runtime.yaml.examplepackages/skills-runtime-sdk-python/config/runtime.yaml
  2. Edit runtime.yaml:
    • llm.base_url: http(s)://<your-host>/v1
    • llm.api_key_env: default OPENAI_API_KEY
    • models.planner / models.executor: replace with real model names

Bootstrap (recommended)

Agent does not implicitly load .env or auto-discover overlays (avoid import-time side effects). For an “easy to run + easy to debug” experience, use bootstrap:

  • skills_runtime.bootstrap.resolve_effective_run_config(...)

It gives you:

  • an effective config (session > env > yaml overlays)
  • a sources map (where each field came from; useful for UI and troubleshooting)

For details, read help/02-config-reference.md.

Skills CLI

This package ships a CLI (stdlib argparse) for skills preflight and scanning:

skills-runtime-sdk --help
skills-runtime-sdk skills --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skills_runtime_sdk-0.1.8.tar.gz (306.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skills_runtime_sdk-0.1.8-py3-none-any.whl (269.9 kB view details)

Uploaded Python 3

File details

Details for the file skills_runtime_sdk-0.1.8.tar.gz.

File metadata

  • Download URL: skills_runtime_sdk-0.1.8.tar.gz
  • Upload date:
  • Size: 306.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for skills_runtime_sdk-0.1.8.tar.gz
Algorithm Hash digest
SHA256 d499e9e47aff8b543522ebfd860df9348dbaaba73b85d4db7b02a737a5050a75
MD5 085d2c7efa1df01ab2a5b2ab5c964901
BLAKE2b-256 8acb83ea4d090fd237b5f0a698c6520c46c7e872eaa6be8c0f70194f6703d061

See more details on using hashes here.

Provenance

The following attestation bundles were made for skills_runtime_sdk-0.1.8.tar.gz:

Publisher: publish-pypi.yml on okwinds/skills-runtime-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file skills_runtime_sdk-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for skills_runtime_sdk-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 96871177da3bad5c75dab087042df7c2c8570a9ea1c6458262d0a1f335a8b434
MD5 d6b5f9e0283caa5932405a6d0b788984
BLAKE2b-256 5980eb67d78344ccb5b8f21c2a9eb925b57d92eb57cd2703eae1ec55d9df54b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for skills_runtime_sdk-0.1.8-py3-none-any.whl:

Publisher: publish-pypi.yml on okwinds/skills-runtime-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page