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
23 changes: 23 additions & 0 deletions examples/basic_usage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env -S uv run python
"""Basic usage example for the Oz API Python SDK.

Demonstrates how to:
- Create a client using the WARP_API_KEY environment variable
- Start an agent run with a simple prompt
- Print the resulting run_id
"""

import os

from oz_agent_sdk import OzAPI

# The client automatically reads WARP_API_KEY from the environment.
client = OzAPI(
api_key=os.environ.get("WARP_API_KEY"),
)

response = client.agent.run(
prompt="Say hello and report back.",
)

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