This release is a pre-release and may not be stable for production use.
ARK Runtime SDK (ark-agent-runtime)
Attach ARK's decision telemetry, cost attribution, and (experimental) constrained supervision around your existing agent — you keep your model, your tools, and your runtime.
pip install ark-agent-runtime
from ark import ARK
# run a task through the ARK runtime and get the canonical RunResult
result = ARK().run(task="find the top Python web frameworks on GitHub")
print(result.success, result.total_cost, [d.model for d in result.decisions])
The wheel bundles the ARK runtime bridge for your platform — no Go toolchain, no build step,
no ARK_BRIDGE_BIN. import ark needs no other dependencies.
Attach ARK around your own agent
import ark
with ark.trace("book the 2nd-cheapest flight") as run:
# ... your agent loop; you own the model and tools ...
run.record(action="tool_call", model="gpt-4o", tool="search",
input_tokens=449, output_tokens=16, outcome="success")
result = run.result # canonical RunResult (same schema as ARK.run)
Experimental constrained supervision is off by default and opt-in:
ark.ARK(supervision="experimental")
LangGraph integration (optional)
pip install "ark-agent-runtime[langgraph]"
from ark.integrations.langgraph import ArkCallbackHandler, ark_supervise_tool, build_agent
Without the extra, import ark still works; importing the integration prints a clear install
message.
What you get
- Canonical
RunResult/DecisionRecordtelemetry (decision-level). - Decision-level cost attribution (routing-aware, deterministic model pricing).
- Routing, tool activity, verification (where available), and errors.
- Experimental constrained supervision (ALLOW / REJECT / REQUIRE_EVIDENCE / RECOVERY_EXHAUSTED).
The SDK does not reimplement ARK; it is a thin client over the bundled ARK runtime and makes no unproven claims.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
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 ark_agent_runtime-0.1.0rc2-py3-none-win_amd64.whl.
File metadata
- Download URL: ark_agent_runtime-0.1.0rc2-py3-none-win_amd64.whl
- Upload date:
- Size: 3.1 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1c492206a99c405a6592104902b97faea7cc25a284ebc0c0a48dee6ac674ba0
|
|
| MD5 |
a7d176328d7031e7d1c214fe6536f348
|
|
| BLAKE2b-256 |
6445f880ea4216fb0b01df69706c507983380ec6addf18be5cff2306712c5574
|
File details
Details for the file ark_agent_runtime-0.1.0rc2-py3-none-manylinux2014_x86_64.whl.
File metadata
- Download URL: ark_agent_runtime-0.1.0rc2-py3-none-manylinux2014_x86_64.whl
- Upload date:
- Size: 3.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4caed72f02cba2b9b8fb951fd2b68ec55d7c95d1bfe797c08244478e77b0d72a
|
|
| MD5 |
24fe5beb4217ef3422091726f1e34f33
|
|
| BLAKE2b-256 |
2bed3b56eba37785a9d52c49ea1e14fddfdccddf911d7eb5b23d85c7fb0c9238
|
File details
Details for the file ark_agent_runtime-0.1.0rc2-py3-none-manylinux2014_aarch64.whl.
File metadata
- Download URL: ark_agent_runtime-0.1.0rc2-py3-none-manylinux2014_aarch64.whl
- Upload date:
- Size: 2.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09d5b30b3a02a84f35ca30eda9184d6195faa5702923550994156ca9552ee0af
|
|
| MD5 |
a615847df4f37f9f1b9fab961469c736
|
|
| BLAKE2b-256 |
f5294444aaba885d45ff833a52ca454597a384abf8841518b386c23136d8b6ab
|
File details
Details for the file ark_agent_runtime-0.1.0rc2-py3-none-macosx_12_0_x86_64.whl.
File metadata
- Download URL: ark_agent_runtime-0.1.0rc2-py3-none-macosx_12_0_x86_64.whl
- Upload date:
- Size: 3.0 MB
- Tags: Python 3, macOS 12.0+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80d0e63dbd4388a684022de8e253f1c4ced34b233d0014bdd5b67ef9cd483159
|
|
| MD5 |
f636c9688792ea022272cba276c83dd4
|
|
| BLAKE2b-256 |
b77ada3d0e98291c6da549f8a23b6e53d31ea4f159bf5b929a926f98ed09011c
|
File details
Details for the file ark_agent_runtime-0.1.0rc2-py3-none-macosx_12_0_arm64.whl.
File metadata
- Download URL: ark_agent_runtime-0.1.0rc2-py3-none-macosx_12_0_arm64.whl
- Upload date:
- Size: 2.8 MB
- Tags: Python 3, macOS 12.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe7773f5f2197660c486489ac9bfe9a297049a8d231860d82e7b2b2b368b4520
|
|
| MD5 |
1c3809f39037b8568dd9e32568e731f5
|
|
| BLAKE2b-256 |
efa9e74f426273f178a2fb80ec71124c20e9bfcccec59f6098d244cae48d9c66
|