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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20a2d3d3d916ce9558a3150007ac8d5adb9467d4a01f2bdea3d810e54a037fb1
|
|
| MD5 |
901b182a883a776f4738935995e8c1a2
|
|
| BLAKE2b-256 |
df3a14fc613113808d572e0a33b2bf548eb3db509cedea42291fc640f00ea817
|
Provenance
The following attestation bundles were made for kernos_sdk-0.1.0.tar.gz:
Publisher:
release.yml on rhs2/kernos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kernos_sdk-0.1.0.tar.gz -
Subject digest:
20a2d3d3d916ce9558a3150007ac8d5adb9467d4a01f2bdea3d810e54a037fb1 - Sigstore transparency entry: 2715605522
- Sigstore integration time:
-
Permalink:
rhs2/kernos@c8a44167f6822ee5d124caf23bf2264da536425b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/rhs2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c8a44167f6822ee5d124caf23bf2264da536425b -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
595ce594739d598c2b136a3f703c715f0feae6dcacff2977b31fc4f458904a5b
|
|
| MD5 |
979011e4e04c43806e5bedb96ed39453
|
|
| BLAKE2b-256 |
590b1f2be2ffb0b3ad97845fe20ed208fdb16c0beb5d7f9b64a75ce5326ce4f1
|
Provenance
The following attestation bundles were made for kernos_sdk-0.1.0-py3-none-any.whl:
Publisher:
release.yml on rhs2/kernos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kernos_sdk-0.1.0-py3-none-any.whl -
Subject digest:
595ce594739d598c2b136a3f703c715f0feae6dcacff2977b31fc4f458904a5b - Sigstore transparency entry: 2715605930
- Sigstore integration time:
-
Permalink:
rhs2/kernos@c8a44167f6822ee5d124caf23bf2264da536425b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/rhs2
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c8a44167f6822ee5d124caf23bf2264da536425b -
Trigger Event:
push
-
Statement type: