Skip to main content

Python client for Driver API.

Project description

crtrs-driver

Python client for Driver. Run agents, stream events.

pip install crtrs-driver
from crtrs.driver import Driver

driver = Driver(api_key="dr_...")  # or DRIVER_API_KEY

# Stream events.
for ev in driver.stream("what is https://ycombinator.com about?"):
    if ev["kind"] == "action":
        print(ev["tool"])

# ...or run to completion.
done = driver.run("what is https://ycombinator.com about?")
print(done["result"])

Events: plan, plan_item_start, action, done, fatal.

MIT

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

crtrs_driver-0.1.1.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

crtrs_driver-0.1.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: crtrs_driver-0.1.1.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for crtrs_driver-0.1.1.tar.gz
Algorithm Hash digest
SHA256 40c1225a640d7568ab16a86ddfe9a5772ac61b32784c691d6821b28877a81cfc
MD5 a8e7c897e1f38dc1e851fc319646bc16
BLAKE2b-256 cfb558a15707eefca2a3533a0ed391837346f086dbb1f5eaaf18e189e1c97992

See more details on using hashes here.

File details

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

File metadata

  • Download URL: crtrs_driver-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for crtrs_driver-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b3eb98b3bb1b2daaa141c90d633ef059d323cd5d3f34ba5af50be5ecbbbfe4c9
MD5 741dfd7aeb2c4006f9d2044e0d5d7375
BLAKE2b-256 7ec4b0be86991ab590b211719c30361869b66da648aea4c04437956a96f0a172

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