Skip to main content

kernos-sdk

The Python part of Kernos: the reasoning worker that leases steps from the kernel and executes them, a typed client for the kernel and gateway HTTP APIs, the model router and providers, and the evaluation harness that gates promotions.

pip install kernos-sdk            # mock provider only
pip install "kernos-sdk[anthropic]"

kernos-worker --kernel http://127.0.0.1:7401 --gateway http://127.0.0.1:7402 \
              --provider mock --worker-id wrk-a1 --concurrency 4

kernos-eval run --golden golden/ --kernel http://127.0.0.1:7401 \
                --gateway http://127.0.0.1:7402 --provider mock --out report.json
kernos-eval gate --baseline base.json --candidate cand.json
from kernos import GatewayClient, KernelClient, ModelRouter, Worker, providers
from kernos.eval import gate, run_golden
from kernos.templating import render, resolve_refs

The contracts this package implements are documented at https://rhs2.github.io/kernos/reference/. specification is silent are listed in NOTES.md.

Every environment variable has a flag equivalent: KERNOS_KERNEL_URL, KERNOS_GATEWAY_URL, KERNOS_TOKEN, KERNOS_PROVIDER, KERNOS_MODEL_DEEP, KERNOS_MODEL_STANDARD, KERNOS_MODEL_CHEAP, KERNOS_PRICING_JSON, KERNOS_MOCK_REFUSE, KERNOS_MOCK_CONFIDENCE, KERNOS_LOG.

Licensed under Apache 2.0.

Download files

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

Source Distribution

kernos_sdk-0.1.0.tar.gz (64.3 kB view details)

Uploaded Source

Built Distribution

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

kernos_sdk-0.1.0-py3-none-any.whl (48.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kernos_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 64.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for kernos_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 20a2d3d3d916ce9558a3150007ac8d5adb9467d4a01f2bdea3d810e54a037fb1
MD5 901b182a883a776f4738935995e8c1a2
BLAKE2b-256 df3a14fc613113808d572e0a33b2bf548eb3db509cedea42291fc640f00ea817

See more details on using hashes here.

Provenance

The following attestation bundles were made for kernos_sdk-0.1.0.tar.gz:

Publisher: release.yml on rhs2/kernos

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

File details

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

File metadata

  • Download URL: kernos_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 48.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for kernos_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 595ce594739d598c2b136a3f703c715f0feae6dcacff2977b31fc4f458904a5b
MD5 979011e4e04c43806e5bedb96ed39453
BLAKE2b-256 590b1f2be2ffb0b3ad97845fe20ed208fdb16c0beb5d7f9b64a75ce5326ce4f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for kernos_sdk-0.1.0-py3-none-any.whl:

Publisher: release.yml on rhs2/kernos

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page