Skip to main content

Python SDK for runx — the governed runtime for agent skills, tools, and chains.

Project description

runx-py

Python SDK for runx — the governed runtime for agent skills, tools, and chains.

runx-py is a thin Python client over the runx CLI and its JSON surfaces. Install the CLI separately (@runxhq/cli on npm), then use this package from Python to search and run skills, resume paused runs, and bridge results into popular agent frameworks.

Install

pip install runx-py

You will also need the runx CLI on your PATH:

npm install -g @runxhq/cli

Usage

from runx import RunxClient

client = RunxClient()

# Search the registry
for result in client.search_skills("sourcey"):
    print(result.skill_id, result.version)

# Run a skill
report = client.run_skill("skills/sourcey", inputs={"project": "."})
print(report["status"])

Framework adapters

Bridge runx into an existing agent framework (OpenAI, Anthropic, CrewAI, LangChain, Vercel AI):

from runx import RunxClient, create_openai_surface_adapter, create_surface_bridge

adapter = create_openai_surface_adapter(create_surface_bridge(RunxClient()))
response = adapter.run("skills/sourcey")

The bridge translates paused runs (required inputs, approval gates) into framework-native tool messages, so your agent loop can resolve them and resume.

Links

License

Apache-2.0

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

runx_py-0.1.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

runx_py-0.1.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file runx_py-0.1.0.tar.gz.

File metadata

  • Download URL: runx_py-0.1.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for runx_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a39ea7abc92d75426ee2e64cc29f6f73908e81a265ad4e8c68e8e768861b98e3
MD5 56eb7eb96a9dfa3ea9ef4000c8411134
BLAKE2b-256 819c000b151599148b27f5b457e8c900033edb5a7300913e08524ef39c7eb86c

See more details on using hashes here.

File details

Details for the file runx_py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: runx_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for runx_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14a5ff9dab7fbc0ef032059332dcea847b0e2ac26f613c77b5a0d506f690d715
MD5 419530c840b656af7280501d7d4cd048
BLAKE2b-256 bda587e7ac5ab47a3277874617ad79235499454aa28273f4741584345b2e5e0d

See more details on using hashes here.

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