Skip to content

CREATORS-INDUSTRIES/driver-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python library for the Driver API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages