Skip to main content

Python client for Driver cloud — run agents, stream events.

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.0.tar.gz (5.1 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.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: crtrs_driver-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 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.0.tar.gz
Algorithm Hash digest
SHA256 fccbd8f2f9c3bacdac70f17cb60453ec1e673597619a2ac78ff8dc2ef0146bf8
MD5 f07d7c985cc5f3b9bb4b366aa0102b7e
BLAKE2b-256 60929471955fea292a9d381db838a8f1dccd656b139782c5bacddf69154da92d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: crtrs_driver-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f9f0376e1e7cc1b3438eb5f20988957730c2e6010164ad7c28cca1eca351170
MD5 c6621c33465cd60931e306cf8142575f
BLAKE2b-256 2020bd0a020bf83d67fed6518121e4c23cb2b73a6cac7ec7d7bac4dabd3962a0

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