Skip to main content
Define the fields your analysis should return instead of parsing free text. Use the resulting batch to create a Studio with the same schema as its taxonomy.

Define and run

Install nomadic, pydantic, and pandas, then define your schema:
The SDK validates the schema locally before sending the request. Prompt analysis supports structured output in the default mode="thinking", not mode="fast".

Read results

Get typed objects or a pandas table:
structured() without as_model returns dictionaries. Both examples skip events without a structured payload. DataFrame rows include event metadata alongside your schema fields; only the DataFrame helper requires pandas. Fetch an existing batch with client.video.get_batch_analysis("BATCH_ID") to use the same helpers.

Other schema formats

Without Pydantic, pass a list of field definitions as output_schema:
Supported types are enum, text, number, boolean, and time_range. Schemas support up to 12 fields; enums require 2–64 distinct values. Use unique snake_case names, required=False for optional fields, and repeated=True for multiple values. Next: Create a Studio.