@lucid-softworks/workflow-task
v0.1.0
Published
Schema-validated typed workflow task definitions and execution.
Maintainers
Readme
@lucid-softworks/workflow-task
Typed tasks with schema-validated inputs and outputs.
const fetchUser = defineTask({
id: "fetch-user",
input: stringSchema(),
output: userSchema,
run: (id, context) => api.getUser(id, { signal: context.signal }),
});