from autoblocks.api.app_client import AutoblocksAppClient
client = AutoblocksAppClient(
api_key="<YOUR_API_KEY>",
app_slug="my-app",
)
items = [
{
"title": "First Item", # String values cannot be empty
"content": "This is the first item"
},
{
"title": "Second Item",
"content": "This is the second item"
}
]
create_result = client.datasets.create_items(
external_id="my-dataset",
items=items,
split_names=["train", "test"] # Split names cannot be empty
)