Skip to content

examples: add basic_usage.py starter example#34

Draft
kjankov wants to merge 1 commit into
mainfrom
oz/add-basic-usage-example
Draft

examples: add basic_usage.py starter example#34
kjankov wants to merge 1 commit into
mainfrom
oz/add-basic-usage-example

Conversation

@kjankov

@kjankov kjankov commented Jun 18, 2026

Copy link
Copy Markdown

Summary

Adds examples/basic_usage.py — a minimal, runnable starter script that shows how to:

  • Instantiate OzAPI using WARP_API_KEY from the environment
  • Start an agent run with client.agent.run()
  • Print the resulting run_id

The file lives in examples/ (manually maintained; never overwritten by the Stainless generator) and follows the conventions documented in CONTRIBUTING.md.

Screenshot

examples/basic_usage.py rendered view

Testing

  • python3 -m ruff format examples/basic_usage.py1 file left unchanged
  • python3 -m ruff check examples/basic_usage.pyAll checks passed!

Conversation: http://localhost:8080/conversation/a5db1199-acfc-4416-a975-8dc5da001a40
Run: http://localhost:8082/runs/019edca3-58b6-71ad-a2dd-ff73b07c0a44

This PR was generated with Oz.

Adds a minimal runnable example that shows how to create a client,
start an agent run, and print the resulting run_id.  The file lives
in examples/ (manually-maintained, never overwritten by the generator).

Co-Authored-By: Oz <oz-agent@warp.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant