Skip to main content
Pre-release

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 / DecisionRecord telemetry (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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

ark_agent_runtime-0.1.0a1-py3-none-win_amd64.whl (3.0 MB view details)

Uploaded Python 3Windows x86-64

ark_agent_runtime-0.1.0a1-py3-none-macosx_12_0_x86_64.whl (2.9 MB view details)

Uploaded Python 3macOS 12.0+ x86-64

ark_agent_runtime-0.1.0a1-py3-none-macosx_12_0_arm64.whl (2.7 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

File details

Details for the file ark_agent_runtime-0.1.0a1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for ark_agent_runtime-0.1.0a1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e517d248b80c426baff8b665088165e5102e82f683b8d1abe679ba3ea9eff01a
MD5 c4e3982b5e14067bb37252b8da47a1a8
BLAKE2b-256 de867ac5a869c1377f2b66946f99e0e2c65cb480116d416d519985c71946a9bf

See more details on using hashes here.

File details

Details for the file ark_agent_runtime-0.1.0a1-py3-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ark_agent_runtime-0.1.0a1-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5badaeb6b882e3243ed09652f5c4535f1bfe945c5693af5640dff6d0de8a3dc8
MD5 d5af8b6909184076a50432cfc14c98e8
BLAKE2b-256 d9cae0195ed86c67cb4f9617bc69a5700310bb679c86d5187cd5897a24d72206

See more details on using hashes here.

File details

Details for the file ark_agent_runtime-0.1.0a1-py3-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ark_agent_runtime-0.1.0a1-py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ad6481c7178bdd96d399192f08d536e0c314dea2b85e58d5a1e167e70fd49b2e
MD5 ff7f41b73e8b04db6231539b2542da3a
BLAKE2b-256 d1834900b297dbdb7fcb9c47c7c777d2d33da32d8c38cb397c9d81318030b401

See more details on using hashes here.

File details

Details for the file ark_agent_runtime-0.1.0a1-py3-none-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for ark_agent_runtime-0.1.0a1-py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 557e3bfb267c6db7f9d64ce4a874a95ab962f663a6e035912b4b85e6ba0fae8d
MD5 1f7a538040887c6091bff65dff90e7d8
BLAKE2b-256 fa69ddb43584312a58d4020de0e621c77c00af94c7b01fb2399a27dccc59d3af

See more details on using hashes here.

File details

Details for the file ark_agent_runtime-0.1.0a1-py3-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for ark_agent_runtime-0.1.0a1-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 278ee3e9846b39f7e9a48b41a6acd67a7e55f3c31ab1df2429c06f9b1818cd7a
MD5 cd4061a2d1d2d6a32e2e1328c51da1f9
BLAKE2b-256 384f16f3f3d9606073bf38b5225e214c6f7342426ded84337ee34e670b068de3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0a1 This release

5 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