from nomadic import NomadicAI, DEFAULT_STRUCTURED_ODD_COLUMNS
client = NomadicAI(api_key="your_api_key")
# Use the default schema or customise it before calling the export.
columns = [
{
"name": "timestamp",
"prompt": "Log the timestamp in ISO 8601 format (placeholder date 2024-01-01).",
"type": "YYYY-MM-DDTHH:MM:SSZ",
},
{
"name": "scenery.road.type",
"prompt": "The type of road the vehicle is on.",
"type": "categorical",
"literals": ["motorway", "rural", "urban_street", "parking_lot", "unpaved", "unknown"],
},
]
odd = client.generate_structured_odd(
video_id="VIDEO_ID",
columns=columns or DEFAULT_STRUCTURED_ODD_COLUMNS,
)
print(odd["csv"])
print(odd.get("share_url"))