pub fn task(spec: &Value, default_id: &str, context_id: &str) -> Result<Value>
A task from a handler’s {id, state, text, artifacts} description.
{id, state, text, artifacts}