Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions examples/quickstart.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env -S uv run python
"""
Quickstart example for the Oz Agent SDK.

Demonstrates the minimal setup needed to run an agent task and poll
for results using the OzAPI client.

Usage:
WARP_API_KEY=your_key ./examples/quickstart.py
"""

import os

from oz_agent_sdk import OzAPI

client = OzAPI(
api_key=os.environ.get("WARP_API_KEY"), # defaults to WARP_API_KEY env var
)

# Run an agent with a simple prompt
response = client.agent.run(
prompt="List the files in the current directory.",
)

print(f"Agent run started — run_id: {response.run_id}")
Loading