Skip to content

Task

The Task type belongs to the Execution Layer — it defines what a thing does.

FieldTypeRequiredDescription
inputjsonnoTask input data
outputjsonnoTask output data
executionStatusselectnoStatus: pending, running, completed, failed, cancelled
startedAtdatenoExecution start time
completedAtdatenoExecution completion time
errortextareanoError message if failed
PropertyValue
Slugtask
IDbuiltin-task
Icon
SystemYes
LayerExecution
{
"title": "Summarize Research Paper",
"minionTypeId": "builtin-task",
"status": "in_progress",
"fields": {
"input": { "paperUrl": "https://arxiv.org/abs/..." },
"executionStatus": "running",
"startedAt": "2024-01-15T10:00:00Z"
}
}
import { TypeRegistry, createMinion } from 'minions-sdk';
const registry = new TypeRegistry();
const type = registry.getBySlug('task')!;
const { minion, validation } = createMinion({
title: 'Summarize Paper',
fields: { input: { paperUrl: 'https://arxiv.org/...' } },
}, type);