Skip to main content

One typed runtime API for Claude, Codex, and Antigravity agent SDKs.

Project description

agent-runtime-kit

agent-runtime-kit is a small Python runtime layer for agent SDKs. It gives applications one typed async API for dispatching an agentic task through Claude Agent SDK, OpenAI Codex SDK, or Google Antigravity SDK while keeping provider capabilities visible.

The package is intentionally not a router, benchmark harness, queue, hosted service, or full agent framework. It is the reusable layer underneath those systems: task models, runtime capabilities, event sinks, availability diagnostics, and adapters.

Install

Core only:

pip install agent-runtime-kit

Provider extras:

pip install "agent-runtime-kit[claude]"
pip install "agent-runtime-kit[codex]"
pip install "agent-runtime-kit[antigravity]"
pip install "agent-runtime-kit[all]"
import asyncio

from agent_runtime_kit import AgentTask, FakeAgentRuntime


async def main() -> None:
    runtime = FakeAgentRuntime(output="done")
    result = await runtime.run(AgentTask(goal="Summarize this repository"))
    print(result.output)


asyncio.run(main())

The core package has no Claude, Codex, or Antigravity dependency. Vendor SDKs are added through optional extras.

Real Providers

import asyncio

from agent_runtime_kit import AgentTask
from agent_runtime_kit.adapters import ClaudeAgentRuntime


async def main() -> None:
    runtime = ClaudeAgentRuntime(default_model="claude-sonnet-4-6")
    diagnostic = runtime.availability()
    if not diagnostic.available:
        raise RuntimeError(diagnostic.message)
    result = await runtime.run(AgentTask(goal="Summarize this repository"))
    print(result.output)


asyncio.run(main())

Runtime Fields

AgentTask supports goal, system prompt, working directory, permission profile, MCP stdio servers, session/resume handles, output schema, budget, metadata, and an async event sink. Where a runtime cannot honor a field (for example only Claude maps budget_usd; Codex and Antigravity reject it with a typed UnsupportedTaskInputError) the adapter raises rather than silently dropping it.

AgentResult returns output, finish reason, parsed structured output, usage, cost, session id, artifacts, tool-call audits, and provider metadata.

Docs

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

agent_runtime_kit-0.1.1.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

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

agent_runtime_kit-0.1.1-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file agent_runtime_kit-0.1.1.tar.gz.

File metadata

  • Download URL: agent_runtime_kit-0.1.1.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agent_runtime_kit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6ff2e3e155b2f773967d6662df9278005b0be49ea08f2ef017e47bd95f2a5632
MD5 fbe9fbfdcd1c74d7f072ed4e13e09f24
BLAKE2b-256 1c0567573d479e170ab6d1cfd97514fc6f7fb95f22b8cba67df44d13c3e873b3

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_runtime_kit-0.1.1.tar.gz:

Publisher: publish-pypi.yml on ebarti/agent-runtime-kit

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

File details

Details for the file agent_runtime_kit-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_runtime_kit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bbee0e948ee28f33c350e57ebe1fd3208a6158e275587940631979e00c81dc97
MD5 c335c666a2a093211637b32642dfe509
BLAKE2b-256 2b49c78cae132b17bd8022cb65540ec4a3921cd23bc23c3c160296663b651cf4

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_runtime_kit-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on ebarti/agent-runtime-kit

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

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