v2

latestOpenAPI 3.1.02026-08-05267431678.1 KB
generate

Label Existing Fields

Label existing data dictionaries with custom input/output field definitions.

Args: request: Fields labeling request with input dicts and field schemas. auth: Authenticated user context.

Returns: GenerateResponse with labeled samples and optional dataset info.

Raises: HTTPException: 400 on invalid field configuration, missing inputs, or dataset validation failure. HTTPException: 500 on labeling failure.

post/generate/fields/label-existing

Request body

user_idstring nullable

User ID (optional, uses authenticated user if not provided)

inputsobject[] required

List of input data dictionaries

domain_descriptionstring nullable

Domain description for generation context

seedinteger nullable

Random seed for reproducibility

session_idstring nullable

Session ID for log streaming

config_num_examplesinteger

Number of examples to generate for config

temperaturenumber

Generation temperature

save_datasetboolean

Save generated dataset to S3 and database

dataset_namestring nullable

Name for the saved dataset (required if save_dataset=True)

project_idstring uuid nullable

Project ID to assign the dataset to

Response

Successful Response

successboolean required
dataobject[] required
countinteger required
task_typestring required
token_usageinteger nullable

Estimated tokens used for generation

datasetobject nullable

Dataset info if saved to S3/database