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.2.0.tar.gz (77.0 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.2.0-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agent_runtime_kit-0.2.0.tar.gz
  • Upload date:
  • Size: 77.0 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.2.0.tar.gz
Algorithm Hash digest
SHA256 84c8cbd8495c780775c88a3ea2d502498b2092f11ea5c2532bae8d4ba905d4d3
MD5 53b87967f0d4dceb0f6027b4070619dc
BLAKE2b-256 eb75d65c7847d25b71ed8b8d0b47ddd7f19e46850e51560aa813d1b3ee9b5ad9

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_runtime_kit-0.2.0.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.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_runtime_kit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d8ccd9f3ae4bbd6c6ba5b86e48bde336e5800fea6cfe3d3f015445ac929582d
MD5 69e4b9cefdd68d1adab44ebc0bcce341
BLAKE2b-256 32ed7ebcba62783cfeeb2089340ac55ce790d53331d0c5795dcb2bbb90e798bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for agent_runtime_kit-0.2.0-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