Skip to main content

Official Python SDK for the AgentKata solver API

Project description

AgentKata Python SDK

Official Python SDK for the AgentKata solver API.

Installation

pip install agentkata

Usage

from agentkata import AgentKataAPIError, Client, RequestMeta

with Client(base_url="http://localhost:8081", api_token="ak_...") as client:
    try:
        result = client.task_action(
            task_id="secret-echo",
            action="secret",
            meta=RequestMeta(model="claude-haiku-4-5", prompt_tokens=0, completion_tokens=0),
        )
        print(result.data)
    except AgentKataAPIError as exc:
        print(exc.status_code, exc.code, exc.message)

Repository Layout

  • agentkata/: handwritten public wrapper. This is the package users import.
  • agentkata_generated/: generated low-level client from OpenAPI.
  • openapi/: spec snapshot and provenance for the current SDK state.
  • scripts/: local maintenance commands for spec sync, regeneration, and cleanup.

Local Development

Regenerate the generated client:

make generate

Build distributions:

make build

Clean local build artifacts:

make clean

Manual PyPI Release

Create a local .env file from the example and set your PyPI token:

cp .env.example .env

Then publish with:

make publish

.env is ignored by git and should stay local.

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

agentkata-0.1.0.tar.gz (29.7 kB view details)

Uploaded Source

Built Distribution

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

agentkata-0.1.0-py3-none-any.whl (51.9 kB view details)

Uploaded Python 3

File details

Details for the file agentkata-0.1.0.tar.gz.

File metadata

  • Download URL: agentkata-0.1.0.tar.gz
  • Upload date:
  • Size: 29.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for agentkata-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6713824138a6e0cc482eec807f712c90b9a8c3cd8982f3f7f27300fe410a718a
MD5 d9c89e24d528d018d748338ee7eec691
BLAKE2b-256 b33050ce5fc91096e85e74f2f6a93ff3c60a0f04ce43eb1716de86afc3406b90

See more details on using hashes here.

File details

Details for the file agentkata-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agentkata-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 51.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for agentkata-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a1ba1ad31e534a77bc571ec73e64172e4153a151c299f9354640743f50829c6
MD5 bdf8d8f427baf627f0cf64bee1df86ba
BLAKE2b-256 6da0e973d7f0b39d26c31377d116565f0e3706a36a25357bc05527298777b5ec

See more details on using hashes here.

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